Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I know if an object exist?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00404777
Message ID:
00404780
Views:
10
>How do I determine whether a specified object exists?

If the object exists, VarType(oMyObject) will return 'O', if you don't have VFP6, you can do type('oMyObject') = 'O' and not isnull(oMyObject), or, if you know the object has a Name property, you can do type('oMyObject.Name') = 'C'
Previous
Reply
Map
View

Click here to load this message in the networking platform