RELEASE PAD Command
Removes a specific menu title or all menu titles from memory.
RELEASE PAD MenuTitleName OF MenuBarName | ALL OF MenuBarName
Parameters
MenuTitleName OF MenuBarName
Specifies the menu title to remove from memory.You can remove a menu title from the Visual FoxPro system menu bar by specifying its name in MenuTitleName. For example, the command RELEASE PAD _MEDIT OF _MSYSMENU removes the Edit menu title from the Visual FoxPro system menu bar.
ALL OF MenuBarName
Specifies that every menu title in a user-defined menu bar is removed from memory. The ALL clause cannot be used to remove menu titles from the Visual FoxPro system menu bar.
Example
The following example removes the Window menu title from the system menu bar.
PUSH MENU _MSYSMENU
RELEASE PAD _MSM_WINDO OF _MSYSMENU && Removes Window menu title
WAIT WINDOW 'Press a key to restore the default menu'
POP MENU _MSYSMENU && Restore default Visual FoxPro menu system