Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vartype() type works different for hyperlink?
Message
De
07/07/2003 18:45:28
 
 
À
07/07/2003 18:41:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00807623
Message ID:
00807727
Vues:
22
>>>>Yes, you should avoid using VARTYPE() if variable/property may not exists.
>>>
>>>Vartype() can return 'U'. So when is it proper to use Vartype() and have it return 'U'?
>>
>>Never.
>
>Really? Never use vartype() to check for the existance of an object?

No, don't use VARTYPE() to check for properties on an object that you don't know for sure exists. Besides, that's what PEMSTATUS() is for, once you know the object exists or not.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform