FORM1.cmdOK.Click do form FORM3.SCX with thisform ENDPROC FORM3.INIT lparameters to_Parent if vartype(to_Parent) = "O" and ! isNull(to_Parent) *-- You will need to ad a property like o_Parent *-- to the form or if You have VPF7, You can use *-- .AddProperty("o_Parent", to_Patent) this.o_Parent = to_Parent endif ENDPROC FORM3.DESTROY *-- This is very important. You will need to *-- get rid of the object-Reference This.o_Parent = .NULL. ENDPROCNow You can do everything with Form1 (or Form2) from within Form3
if Thisform.o_Parent.Name = frmForm1 wait window "Hey, I have been called by FORM 1" else wait window "I am visible, because FORM 2 asked me to do so" endifYou have to take care that You do not close the parent form