>hi all,
>
>I have a variable, at some situation I need to set it to ""
>
>the code is somply
>
>if NoValue==1 then
> MyString=""
>endif
>
>
>The program just works find when I run it on VFP, but after compiling and run the .exe program, it says "Function arguement, type or count is invalid", any idea please?
>
>Thanks in advance!
AFAIK, the double-equals is used for string comparison only (check the help file) and the "then" is not part of the IF syntax
If NoValue = 1
MyString = ""
Endif
The above should work if your variable "NoValue" is indeed of numeric data type.