Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VARTYPE vs TYPE with Parent property
Message
De
26/07/2002 00:04:35
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
 
 
À
25/07/2002 16:11:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00682266
Message ID:
00682862
Vues:
24
>Hi Nancy,
>
>>For objects, one should be careful about checking just whether their type is "O". It's safer to check a property, say "Name", if it will have one, or add !ISNULL() to the check.
>
>I've heard this before, but don't remember why it makes a difference. Could you enlighten me?

An example will illustrate it best, I think. Try this:
lo = createobject('form')
?Type('lo')
lo = .NULL.
?Type('lo')
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform