chpicker
Programmer
- Apr 10, 2001
- 1,316
Is there any way to reference a form from within its menu procedures? I have a top-level form with a simple menu, FILE, with a single menu item in it, EXIT. I want this menu item to close the form, but not the application. I execute the menu from my FORM.INIT event with:
The menu generation code gets a reference to the form as a local variable, however that variable is not available to the menu items. THISFORM is also not available to the menu items. Is there some way for the menu to reference the form? Assume that I want to be able to launch multiple copies of the form, so hard-coding the form's name into the menu's RELEASE line doesn't work.
Code:
DO MyMenu.mpr WITH THIS