Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
how to determine if a var is = nothing
Message
 
À
07/09/2000 09:51:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00413285
Message ID:
00413740
Vues:
23
>TYPE() behaves like this, VARTYPE() doesn't.

There is one difference that I know of. For a nested reference to an object, like Object1.Object2.Object3, if you want to check the type of Object3, and any one of the parent objects does not exist Vartype will give an error, while Type will work, ie.

Type("Object1.Object2.Object3") returns "U"
VarType("Object1.Object2.Object3") will give an error.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform