Stephane,
Put a breakpoint on VARTYPE(i)="N" and check lcCommand right after it has been changed to "C".
>>Try
>>LOCAL i
>>before the code you run...
>
>It's already declared as a LOCAL variable before the loop. I just didn't include it in the example.
>
>It's really being converted because, for example, at the end of the loop, it's suppose to contain the numeric value 248000 and it's set to '248000' (char value) instead...
>
>Any other ideas?
>
>I can easily correct the error by re-converting the char value to a numerical value before the end of the FOR loop but I really want to understand the meaning and cause of the error.
>
>Stephane.
Daniel