>>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?
>
>Add two properties to your form or objects classes "ENABLEHOOKS" & "HOOKSNAME" , then check this property in (Refresh, init,...) any method that you expect you need this hook and if it is (.t.), then run a procedure and pass the (Oform,oBject) and the procedure suppose to run whatever stored in "HOOKSNAME".
---
Hi Nabil
Thanks for the information. :)