Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How Do I
Message
 
 
À
28/01/1999 13:12:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00180248
Message ID:
00181640
Vues:
10
Ed,

Vartype() will handle a non-existent memvar with U, but vartype() will choke if you try and go down to nonexistent contained objects.

clear all
? vartype( y ) && U
? vartype( y.one ) && choke on "table" y
? vartype( y.one.two ) && choke on object y

>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.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform