General information
Category:
Coding, syntax & commands
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only