Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determine Objects & controls on a form
Message
 
À
07/07/1998 04:18:10
Jayesh Vorani
Technova Imaging Systems Limited.
New Bombay, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00114804
Message ID:
00114824
Vues:
22
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
Fil
Voir

Click here to load this message in the networking platform