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]