Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I know If a Object exist?
Message
 
 
To
22/11/1998 03:21:49
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00159912
Message ID:
00160321
Views:
24
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform