Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How Do I
Message
 
À
26/01/1999 11:29:53
Walter Meester
HoogkarspelPays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00180248
Message ID:
00180312
Vues:
23
>to all,
>
>if you use: if type('ObjectName.Name') == "C" like bob suggested you don't have to use the ISNULL function.
>
>I use this method in methods which must be as fast as possible.
>
Hi Walter,

I don't mean to pick, but you don't need the double equal sign there since TYPE() only returns a single uppercase character. Further, even if the function returned "OO" for a different data type, TYPE('ObjectName') = "OO" where 'ObjectName' is an object that would return "O", would evaluate to false. If you reversed the order ("OO" = TYPE('ObjectName') in these circumstance, then there would be a problem. Lastly, there might be some additional overhead in resolving the property reference. Whether or not this is as great as the multiple functions, I don't know.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform