General information
Category:
Forms & Form designer
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only