>>I have a FORM in vfp50. On it, I have
>>SAVE/CANCEL buttons in several places
>>living different PAGES. I would like to write
>>a METHOD where I can control the buttons
>>visible property. I am not sure how
>>to address these buttons.
>>example - thisform.cmdsave.visible = .f.
>>any ideas?
>
>I can't exactly tell what you are trying to do, but that should work. You can access the buttons from the containers that it is on, so you can use thisform.pageframe1.cmdMyButton.visible, or thisform.cmdMyButton.visible or frmMyForm.cmdMyButton.visible.
>
>If this isn't the right answer, could you be a little more specific with your question?
Hi Jay -
for example... I will have a SAVE button on pageframe1.page1 and
another SAVE button on pageframe1.page2. I want to call a method
and set the SAVE button on pageframe1.page1 visible property to F.
thisform.cmdsave.visible = .f. does not work. Remember, I am using a
formset. I want a generic method that sets all SAVE buttons to visible = .f..