Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do we check for the existence of an object?
Message
 
To
15/07/1999 05:45:14
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00240965
Message ID:
00241696
Views:
22
>>
if type('myform.mygrid')='O' and not isnull(myform.mygrid)
>>   *Object Exists
>>endif
>
>had trouble with this until I spotted your 'myform' inclusion. The secret is to include the full object reference (in my case "Cashbook.pageframe1.page3.grid1") rather than just "grid1". Then it works fine
>
>Thanks
>
>Harry,

Change that to;

Thisform.pageframe1.page3.grid1

and it will work even if the name of the form is not cashbook.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform