>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?
Rob,
I think you and Ed were getting lost in all the auto-replies. Here's what I believe what Ed was telling you.
1. In order for this to work, you'll first need a global variable that can be initialized from the menu. For the sake of this example, I'm calling it goForm.
2. In you're menu command line, assuming that the form is MyForm, you'd have:
DO FORM MyForm NAME goForm LINKED
3. Now to set a command button as enabled, assume its name is MyCmndBtn in your proccedure:
goForm.MyCmndBtn.Enabled = .T.
That should do it. Ed, isn't this what you were trying to tell Rob.
George
Ubi caritas et amor, deus ibi est