Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize


Visual Studio .NET 2003

Removes a specific menu title or all menu titles from memory.

RELEASE PAD MenuTitleName OF MenuBarName | ALL OF MenuBarName


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.


The following example removes the Window menu title from the system menu bar.

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

See Also

DEFINE PAD | RELEASE BAR | System Menu Names

© 2015 Microsoft