Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Test If a Variable exists
Message
De
01/09/2006 08:02:58
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01150290
Message ID:
01150332
Vues:
35
>My syntax is correct.
>
>>The correct syntax is
>>
>>
>>IF VARTYPE(m.SomeVariable) <> "U"
>>  * Variable exists
>>
>>IF VARTYPE(m.SomeObject) == "O"  && this part is useless AND NOT ISNULL(SomeObject)
>>  * SomeObject is an Object reference
>>...
>>
Sorry, it isn't

The variable name does not need quotes for vartype()

VARTYPE("SomeVariable") will always return 'C'
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform