Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Closing thisform from a menu (.mpr file)

Status
Not open for further replies.

mpgalvin

Programmer
Feb 5, 2001
119
IE
After some brief experimentation with DD's ActiveBar we've decided to go old-skool and use Foxpro's Menu builder to build our menus. AB was overkill, anyway.

So, I've been recreating all the menus that were in ActiveBar over to VFP's menu builder, but I've found a little problem. We have a "Exit" menu option which should close down the current form, leaving the original calling form intact. Ie., I don't want to exit VFP, I want to exit this module, and go back to the main screen. We had a ToolClick event sorting all this out with AB (so release thisform worked like a charm) but now I can't get it to happen.

I've tried release thisform, thisform.release, _screen.activeform.release, etc, so what's the proper syntax for closing the current form from within an mpr file?
 
Try
Name_Of_Form.Release

where Name_Of_Form is the name of the form you made with CREATE FORM or CREATEOBJECT.

Dave S.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top