Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I release a top level form from its menu/toolbar?
Message
From
05/06/2000 09:55:58
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
How can I release a top level form from its menu/toolbar?
Miscellaneous
Thread ID:
00376705
Message ID:
00376705
Views:
70
In my VFP 6 SP 3 application are some SDI forms with their own menues and toolbars. How can I release such a form with a call from one of the toolbar buttons or menu pads? I thought that should be an easy one and put in the toolbar button click event:
THISFORM.oFormRef.closeForm()
oFormRef is a reference to the form which contains the toolbar. The method closeForm() of the form contains:
...<br>RELEASE THISFORM
That gives me a Cx5 error crashing VFP. I guess that is because the call of RELEASE removes the form and hence the toolbar and afterwards there is no point of return in the code segment of the toolbar.

I hope that I am just overseeing an easy solution. Thanks in advance!

Robert Stralka
I've acquired quite a taste for a well-made mistake... [Fiona Apple]
Next
Reply
Map
View

Click here to load this message in the networking platform