>when I have 2 depending forms I always instantiate the "son" as a property of the parent form
>thus closing the parent form also closes the child form (as it goes out of scope)
Any special recommendations in order to make sure the parent will be closed first? I am using something like this right now which is mostly to scan all the forms and taking action on them.
FOR lnCompteur=lnFormCount TO 1 STEP -1
IF UPPER(_screen.Forms(lnCompteur).BaseClass)='FORM'
IF _screen.Forms(lnCompteur).QueryUnload()
_screen.Forms(lnCompteur).Release()
ENDIF
ELSE
IF lnCompteur=1
EXIT
ELSE
lnCompteur=lnCompteur-1
ENDIF
ENDIF
NEXT