>>>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.
>---
>Hi George and thanks for answering.
>I did what you said and now I get an error message saying,
>unknown member MYCMNDBTN. Can you tell me why?
Rob,
Substitute the real name of the command button for MyCmndBtn. If you have any more problems, show us the real name of the form and the command button you want to manipulate.
George
Ubi caritas et amor, deus ibi est