Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How Do I
Message
De
28/01/1999 14:49:46
 
 
À
28/01/1999 13:12:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00180248
Message ID:
00181467
Vues:
10
This is not true in all cases. For example:

ox = CREATEOBJECT("custom")
? VARTYPE(ox.oNoObject) && This will return "U" as expected
? VARTYPE(ox.oNoObject.cNoProperty) && Returns an error

As long as an object reference exists for a property (or another object) VARTYPE() will not create an error. In the latter case, you would have to use TYPE().

>If the variable doesn't exist, VATYPE() smokes with a Variable "whatever" not found, so if the variable might not exist, or might be out of scope, TYPE() is still preferable.
- Jeff
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform