Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
When is .NULL.= .NULL.?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00398289
Message ID:
00398507
Vues:
16
>? TYPE('lvar') && "N"If no other type is assigned previously, TYPE() will report "L". VARTYPE() always will report "X".

George,

Type reports L on an unitialized null var because all vars default to L unless they are assigned some other data type.

LOCAL var
?TYPE("var") && reports L

VarType() is fine except for one situation, when you are checking the type of a property of an object. In that case VarType will error out if the object does not exist while Type will report U for undefined.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform