Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Equivalent to setall() in VFP
Message
 
À
05/03/2001 02:19:47
Jordan Pastourel
Worksafe Management Systems
Toowong, Australie
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00481800
Message ID:
00481821
Vues:
14
>Hi all,
>is there an equivalent command to the setall() command in VFP? or is there another way to disable or change the property of all the controls on a form??

You can loop through the collection of controls:
Dim x as Control

For each x in me.controls
   On error resume next
   x.Enabled = false
   On error goto 0
next
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform