There are two easiest way
1. Pass a Form's Thisform referece to the Calling form
For example, In Click() of the command button.
DO SecondForm WITH Thisform
Store this object reference into form's property and use it.
2. Search the _screen.forms() array for active forms.
FOR lnI = 1 TO ALEN(_Screen.Forms)
IF _Screen.Forms(lnI).Name = 'firstform'
_Screen.Forms(lnI).visible = .T.
ENDIF
NEXT
Hope this helps
Bye
Jayesh
>here's my dilemma..
>i have 2 forms, when i click on a command key i make the current form invisible (thisform.visible = .F) then start another form. when i quit the 2nd form i want to make the first form visible again. since these forms are separate and not part of a formset i can't seem to acces the visible property of the first form, which is still active but not visible. is there a way to do this?
>
>i then reviewed my VFP manuals and it seems the way to do this would be to use a formset and then i would be able to use thisformset.form1.visible = .T. to do what i need. ok this seems fine.
>
>the only problem i have with this is that i have these seperate forms that are not a part of a formset. if i modify form1 and add a formset i cant add form2. theres an option to add a form but not an existing form, is there a way to do this.
>
>help
>frank
- Jayesh