Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Iterating through form's controls
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00407951
Message ID:
00408065
Views:
30
>Thanks a lot for your reply. I'll study this. In the meanwhile I decided to follow Larry's advice to add SetDefaultState method to Container class. In this method I'll put the code, as Cindy suggested:
>
>for each loControl in this.Controls
>      if left(lower(loControl.class),2)='bt' && BtCrit classes
>            loControl.SetDefaultState()
>      endif
>next
>
If you have alot of controls you may want to look at the performance. I would think FOR EACH and a TEST would be slower than explicitly calling each control using with...endwith, but it might not be noticable. Just a thought.
Roi
'MCP' Visual FoxPro

In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!
Previous
Reply
Map
View

Click here to load this message in the networking platform