Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing objects properties programmatically
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00050589
Message ID:
00050590
Vues:
20
>I want to change a property of all the objects on a form programmatically. As
>in making everyting enabled -= .f. to enabled = .t.
>
>What property tells me the total number of objects on the form (tab index?) so
>I can write a loop from i to x to hit all the existing objects?

ThisForm.SetAll('Enabled', .T.)
-----
FOR i = 1 TO ThisForm.ControlCount
ThisForm.Controls[i].Enabled = .T.
ENDfor
-----
FOR EACH loCtl IN ThisForm.Controls
loCtl.Enabled = .T.
ENDfor
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform