Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Equivalent to setall() in VFP
Message
 
To
05/03/2001 02:19:47
Jordan Pastourel
Worksafe Management Systems
Toowong, Australia
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00481800
Message ID:
00481821
Views:
13
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform