Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine if an object exists
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00098172
Message ID:
00098393
Views:
41
Richard,

This is the udf I use:

* IsObject.prg
lparameter roObject
return( ( type( "m.roObject" ) == 'O' ) and ( ! isnull( m.roObject ) ) )

>So the test I chould have used is:
>IF type( "o1" ) != "O" OR (type( "o1" ) = "O" AND ISNULL(o1))
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform