Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting value to a char variable
Message
From
24/07/2001 00:12:14
 
 
To
23/07/2001 23:53:43
Jimi Lee
Pop Electronic Products Ltd.
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00534227
Message ID:
00534234
Views:
13
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform