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
From
20/04/1998 10:19:53
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00092543
Message ID:
00093391
Views:
29
>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?
---
Hi David and thanks for the information... :)
Robert Keith
Independent Developer
San Antonio, Texas
E-mail address:
rebelrob1@yahoo.com
Previous
Reply
Map
View

Click here to load this message in the networking platform