Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Looping through a set of controls
Message
From
29/01/2003 09:51:32
Erick Miranda
Formata Data Business - Grupo Linx
Contagem, Brazil
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00746597
Message ID:
00746661
Views:
18
This message has been marked as the solution to the initial question of the thread.
Hi John!

Use the SetAll method. E.g.:
   ThisForm.SetAll("Enabled", .F.)   && All controls
   ThisForm.SetAll("Enabled", .F., "TextBox")   && Only textboxs
   ThisForm.SetAll("Enabled", .F., "CommandButton")   && Only commandbuttons
Bye!

> If I have 20 textboxs, couple listboxs, and a few command buttons... and I
> want to enable/disable them all.... is there an easy way I can loop
> through a forms commands and disable them all?
Erick
Força Sempre!
Strength Always!
Previous
Reply
Map
View

Click here to load this message in the networking platform