Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Looping through a set of controls
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00746597
Message ID:
00746604
Views:
20
Hi John. ThisForm.Enabled = .F. disables all controls. Then you could re-enable any specific control.

< Update >Sorry, I realize that once the form is disabled you will not be able to re-enable any specific controls. In which case use the ThisForm.ControlCount property to know the number of controls and ThisForm.Controls to access the various objects on the form. The controls property is an array for accessing the controls in a container object such as a form. See the VFP help on Form - Object Properties, Methods and Events.


>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?
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Reply
Map
View

Click here to load this message in the networking platform