>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... :)