Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Looping through a set of controls
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00746597
Message ID:
00746604
Vues:
21
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform