Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing objects properties programmatically
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00050589
Message ID:
00050590
Views:
18
>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?
Previous
Reply
Map
View

Click here to load this message in the networking platform