Deactivates a user-defined menu bar and removes it from the screen; but doesn't remove the menu-bar definition from memory.
Syntax
DEACTIVATE MENU MenuName1 [, MenuName2 ...] | ALL
Arguments
MenuName1 [, MenuName2 ...]
Specifies the names of the menu bars to deactivate. You can deactivate a set of menu bars by including a list of menu bar names separated by commas.
ALL
Deactivates all active menus.
Remarks
DEACTIVATE MENU removes an active menu bar or set of menu bars from the main Visual FoxPro window or a user-defined window without removing the menu bar definition from memory. A menu bar can be reactivated with ACTIVATE MENU and the menu bar name.
Tip When you include the system menu bar (_MSYSMENU) in an application, you don't need to define, activate, or deactivate the menu bar. Instead, issue SET SYSMENU AUTOMATIC.
To release a specific menu bar or a set of menu bars from memory, use RELEASE MENUS. You can release all menu bars from memory with CLEAR MENUS or CLEAR ALL.
Program control is returned to the program line immediately following the line that activated the menu bar unless DEFINE MENU BAR is used to create the menu bar or ACTIVATE MENU NOWAIT is used to activate the menu bar.