Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting value to a char variable
Message
De
24/07/2001 00:12:14
 
 
À
23/07/2001 23:53:43
Jimi Lee
Pop Electronic Products Ltd.
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00534227
Message ID:
00534234
Vues:
12
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform