Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I know If a Object exist?
Message
 
 
À
22/11/1998 03:21:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00159912
Message ID:
00160321
Vues:
30
David,

Given the limitations of VARTYPE handling object containership I'm still using this IsObject() udf:

* IsObject.prg
lparameter roObject

return( ( type( "m.roObject" ) == 'O' ) and ( ! isnull( m.roObject ) ) )

It's plenty fast for me.

>Good point! And ActiveX components too.
>
>Tell me Dave, now that there's VARTYPE() which I think returns 'X' for a null object type, what's the best/fastest solution?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform