Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I set the property of a button from a procedure?
Message
 
 
To
16/04/1998 11:27:01
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00092543
Message ID:
00092713
Views:
26
Robert,

You need to step back and ask why you want to do this in the first place. What is the overall goal? What is a reasonable OO, if applicable, solution? A lot of the code being thrown around in the thread is permanently attaching code in a prg file to some specific named form and some specific named button. There is zero reuse there.

You have a lot of options, here's a couple:

1. use a button class that is smart enough to know how to enable/disable itself.

2. use some sort of manager object that you pass a reference of the button to

Have you read any of the VFP books out there? My Pros Talk VFP OOP book does a lot of basic inter-object communication stuff like what you are trying to undertake here.

>How can I set the property of a button from a procedure?
>From a menu option and in a procedure file, I want to enable
>a button on my form. any ideas?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform