Information générale
Catégorie:
Codage, syntaxe et commandes
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.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement