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:
00288804
Views:
21
>>IF type('thisform.mycontrol') =="O" AND type('thisform.mycontrol.name') == "C"

>I prefer Jim Booth's way. < g >
>

>IF type('thisform.mycontrol.Name') =="C"
> DO ...
>ELSE
> DO ...
>ENDIF

Well, I DID include that (see first line above) - I just had it check for the Object type as well - redundant, yes, but useful during debugging.
Barbara Paltiel, Paltiel Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform