Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Does form exists?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00394154
Message ID:
00394275
Views:
13
>>>Hi, all! Please answer which function can determinate does object (in my sample form) exists or not. Thank you. Andrew
>>
>>If you're checking on a object in a form, use the PEMSTATUS() function. If you want to know if a form exists, you can check the _SCREEN.FORMS collection.
>
>Also you can check if
>
>TYPE("thisform.myobject")= "O"
>
>and check for !ISNULL(thisform.myobject)

I can see the need to check ISNULL() for an object variable pointing to an object that may have been destroyed. But how would THISFORM.myobject become .NULL. if it existed?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform