Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disabling Controls
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00026728
Message ID:
00026821
Views:
34
Anon,

This does raise an interesting problem though, at least in my little mind. . .
If one sets the Enabled property(s) using some variable, and then whenever the variable changes one issues a ThisForm.Refresh() BUT NOTHING DIFFERENT RESULTS because the properties were not changed explicitly, then precisely HOW does Refresh() work???

I don't remember the initial bits of this thread, but I have to wonder if possibly the problem is that "doedit" is *not* PUBLIC, so it is defaulting to .F. where ever it is used outside its defining/setting function(s).

Regards,
Jim N.


>
>You do have to explicitly reset the props, as Edward says, though you can use the variable form of object.enabled = doedit, it works fine. If setall (as suggested) is not good (say you only want to reset some), then you could add a method with just those objects you want to reset each time doedit changes...
>
>obj1.enabled = doedit
>obj2.enabled = doedit
>etc...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform