Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining whether a control exists.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00453834
Message ID:
00453968
Vues:
27
>;-)
>Of course, you're right and not right. type() is slower because it uses error handling method (message() function after type() returns quite funny error messages sometimes ;). PEMSTATUS just reads the structures of object definition in memory. Completely different ways.
Vlad,

I have never gotten an error using TYPE() for checking the existance on an object. What error have you gotten?

TYPE() takes longer because it evaluate the data type of an expression therefore it must first evaluate the expression which requires parsing the expression. PEMStatus() just reads the PEMs of an object. The problem is that PEMStatus() will error if one of the objects in the reference does not exist while type() will simply return U for undefined.

VarType() is a totally different situation from Type().
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform