Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is the best way to do this?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00262894
Message ID:
00262967
Views:
20
>The only problem is that my textboxes aren't all going to be set to the same thing. Textbox1 could have a literal text value such as "ME" or "MYSELF" or "I" depending upon conditions.
>Textbox2 could have a literal text value such as "ME" or "MYSELF" or "I" depending upon conditions. So all textboxes don't always get set to the same value depending upon conditions so I can't do SETALL(). But SETALL() will help me in other areas. I never used that command before and that will really save me, but not in this case.
>
>Thanks for helping me.

If it suits in your case, you can group the textboxes you want to update at once and place them into container and then use the container.SetAll() method, so it will not affect other textboxes. Or, if you have those textboxes based on another subclassed textbox you specify that class in the 3rd parameter of SetAll() method (usually not convenient because it is an overhead for the simple forms)

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform