Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine Objects & controls on a form
Message
 
 
To
07/07/1998 04:18:10
Jayesh Vorani
Technova Imaging Systems Limited.
New Bombay, India
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00114804
Message ID:
00114824
Views:
21
If all you care about is whether a specific object exists, this code will work:

If Type("ThisForm.Command1.Name") = "C"
* the control exists
Endif

If you want to loop through objects on a form, here is some sample code to get you started:

For Each x in ThisForm.Controls
?x.name
Next x



>How do i determine how many objects are there on a form and how to check whether a particular object say 'Command1' is existing on a form.any help or any clues are appreciated.
>
>Jay.
Previous
Reply
Map
View

Click here to load this message in the networking platform