Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Enabled=MemVar property assignment?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00170122
Message ID:
00170402
Views:
13
I see - it might make more sense to assign a L_ENABLED property to the FORM (instead of using a variable) and then in the base class of my controls, give them a default REFRESH method that says THIS.ENABLED=THISFORM.L_ENABLED. This is kinda integrating your method - which emphasises that I should be using OOP methodology (thanks for the push), with Nancy's suggestion which seems a little more succinct code-wise.

Much thanks to both of you.

>Hi Michael,
>
>>Well, it works when the form is initialized, but when I change the memvar from false to true, a Refresh() doesn't seem to work. It seems that the enabled property is not re-calculated when the objects are refreshed.
>
>You can add a property lEnabled and assign it an expression, like a variable name. In the Refresh method of your base class you could use code like this:
>
>   If not Empty(This.lEnabled)
>      This.Enabled = Evaluate(This.lEnabled)
>   Endif
>Christof
Kogo Michael Hogan

"Pinky, are you pondering what I'm pondering?"
I think so Brain, but "Snowball for Windows"?

Ideate Web Site
Previous
Reply
Map
View

Click here to load this message in the networking platform