Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Edit and no edit of fields
Message
From
23/06/1998 11:36:11
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00110932
Message ID:
00110959
Views:
28
Don,

>To add on this process, In the form Refresh method you can make use of the SETALL() method.
>
>Thisform.Setall( "Enabled", Thisform.Editing, "TextBox" )
>
>Rather than applying to each control...

Yeah, I know .... this is one of the things I meant when I said there were cleaner ways. I was trying to highlight how each control *can* control it's own state.

Also, there's a methodology issue. As a general rule (broken often - hehe) I try to code my frameworks where each control or container sets it's own state depending on the environment. I try to avoid SetAlls and the like except where common-sense efficiencies make there use overwhelmingly beneficial.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Reply
Map
View

Click here to load this message in the networking platform