Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Menu Problem
Message
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Title:
Miscellaneous
Thread ID:
00300717
Message ID:
00300726
Views:
22
>I call a second menu (recmenu) from my mainmenu (mainmenu). I am unable to figure out the correct syntax to switch between menus.
>I call recmenu from a command in mainmenu (do recmenu.mpr). If I try to return to my main menu by name (show menu mainmenu), I get the error "menu not defined".
>How do I correct my problem?
>THANKS!

Ken,

You have two choices, the simple one is to run the main menu again as in;

DO MainMenu.mpr

The more complex but probably better way is to use the PUSH MENU and POP MENU commands to save the main menu in memory;
PUSH MENU _msysmenu
DO recmenu.mpr

...

* when you're done

POP MENU _msysmenu
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform