Page 1 of 1

converting text to numbers

Posted: Mon Apr 16, 2007 1:54 pm
by churchken
Hi,

I am attempting to use data from a text file as a numeric variable.

A text file is put into a field, that field is then parsed with the "split" command, and correctly places string data ( e.g. 110.25) into a separate card field.

If that field is then used in an "if then" statement doing a math comparison, the following error is produced:

"Expression: double binary operator"

Is it possible to "force" a conversion from text to decimal numbers, or am I missing something else.


Thanks,

Posted: Mon Apr 16, 2007 2:40 pm
by Mark
Hi Ken,

Please post your complete script.

Best,

Mark

thanks

Posted: Mon Apr 16, 2007 3:40 pm
by churchken
Mark,

Thanks, but I think I found it -- I was incorrectly using a global variable as part of the "if" test.

I'll post again if the error message persists.

Thank you.