Greg:
Try this; for the launch button, use:
THISFORM.Addproperty("oref","")
DO FORM Testform2 NAME THISFORM.oRef LINKED
and to release it, use what Ed said:
IF TYPE('thisform.oRef') = 'O' AND ! ISNULL(thisform.oRef)
thisform.oRef.Release()
thisform.oRef = NULL
ENDIF
HTH,
-Irv.
>Greetings!
>I am having a hard time figuring out how to close a form when using the "DO FORM somthing" construct. I have one form which has a button on it which loads a form with an OLE object on it which displays an avi file. What I want to do is close the form with a differnt button but the solution seems to escape me. Can someone offer a suggestion that might hemp me get arround this situation? Any help would be greatly appriciated. :-)
>Greg Roy