Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Closing a form opened with DO Form
Message
From
12/09/2002 18:02:32
Irv Adams
MSC Managed Care, Inc.
Florida, United States
 
 
To
12/09/2002 14:37:52
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00699878
Message ID:
00699988
Views:
18
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
Previous
Reply
Map
View

Click here to load this message in the networking platform