Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to check for existence of a control on a form
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00288347
Message ID:
00288902
Views:
21
Hi Barbara,

>Christof's suggestion was correct. However, if the control is .Null, his code will give you .T. back but your base class code will still bomb. You'll need to check to see if the value is .Null, OR, and simpler, check to see if the the control NAME is type "C"

How do you set a control to NULL? *g* The only way I ever got this was when I manually decreased the internal object reference counter.

For actual objects, TYPE("object") is sufficient. Of course, if we are dealing with object reference properties, as well, than you need some more checking as you have indicated.

Christof
--
Christof
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform