Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing Form Controls as a Collection
Message
From
03/04/2006 15:43:17
 
 
To
03/04/2006 15:33:00
Joel Whitehead
Ccs Central Computer Services Inc.
Thunder Bay, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01110059
Message ID:
01110062
Views:
15
>We are doing some work on an old application written in Visual FoxPro 6. A question from one of my co-workers has me stumped. He is wondering if there is a command to cycle through all the controls on a page of a pageframe, rather than individually addressing each control. He comes from an ASP background and is used to writing code to address "collections" of controls.
>
>For example, cycle through all the controls on a page, and for any text boxes, set the font to bold, or some such thing. I told him that we would normally create a text box class and have all the text boxes inherit from that. However, it did make me wonder if there is a way to accomplish this similar to how he has described to me.

In addition to Naomi's reply, some classes have a .SetAll() method which may be handy for you.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Reply
Map
View

Click here to load this message in the networking platform