Page 1 of 1

Loop final value not numeric

Posted: Thu Nov 24, 2011 1:30 pm
by kari0ca
Hi there, i'm having a problem that already was discussed here, but none of the solutions presented solve my problem :cry:
So here i am to ask for some help on this problem.


I'm having this message on a loop:
"Loop final value not numeric (29-1) - cannot execute it"

I've already tried to use this: Trim(Convert(@FM,"",CmdQtdLinhasCalc.$CommandOutput)) - Not working
Oconv(Ereplace(trim(CmdQtdLinhas.$CommandOutput),@FM,""), "MCN") - Not working
Iconv(Ereplace(trim(CmdQtdLinhas.$CommandOutput),@FM,""), "MCN") - Not working

Can someone give me some hints to solve this problem?

Thanks in advance,
Higor

Posted: Thu Nov 24, 2011 1:47 pm
by ray.wurlod
What is the actual command output? From the error message, it would appear that the line "29-1" appears in it.

Posted: Thu Nov 24, 2011 3:01 pm
by chulett
Yes, I would be curious what exactly you are trying to loop thru and how it is being generated.

Posted: Fri Nov 25, 2011 12:54 pm
by kari0ca
@ray.wurlod, the error message was: "Loop final value not numeric (29-1) - cannot execute it", i cant remember it now, i've managed to workaround this problem

@chulett, i was setting the loop this way: From: 2, Step: 1, To: Oconv(Ereplace(trim(CmdQtdLinhas.$CommandOutput),@FM,""), "MCN") -1

the result of Oconv(Ereplace(trim(CmdQtdLinhas.$CommandOutput),@FM,""), "MCN") would be 29, so i assume that i cant use an expression on TO field...
i've made this calc on a variable and send it to the loop.

Thanx for your answer and your time trying to help me