Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I know If a Object exist?
Message
De
22/11/1998 20:15:28
 
 
À
22/11/1998 14:23:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00159912
Message ID:
00160381
Vues:
26
Hi BOb,

Here are a few:

[1] VARTYPE(loObject.Property) will evaluate to either "C","N","Y","L","O","G","D","T","X","U" ONLY if VARTYPE(loObject) = "O", otherwise an error will be generated.

[2] VARTYPE(loObject.Parent) will evaluate to "O" ONLY if VARTYPE(loObject) = "O" AND it has a Parent, otherwise an error will be generated.

It would be nice if VARTYPE() would just return a "U" in those cases where errors are generated.
- Jeff
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform