.. highlightlang:: us .. index:: MnRemove .. _mnremove: MnRemove ======== .. us.tag MnRemove ENGLISH Menu :ref:`MnRemove` removes a menu item or a complete menu. .. function:: bool = MnRemove(ssMenu, nMenu) bool = MnRemove(ssMenu, nMenu, nItem) .. us.return **Return Value** If the function succeeds, the return value *bool* is TRUE (1); otherwise it is FALSE (0). .. us.params **Parameters** .. uparam:: ssMenu *ssMenu* is the name of the menu bar. The following menus are available: .. list-table:: :header-rows: 1 * - Value - Meaning * - "Editor" - This menu appears when an editor is active. * - "Document" - This menu appears when a document with diagram pages is active. * - "DocumentServer" - This menu appears when the UniPlot document page is embedded in another application program (OLE). * - "Command" - This menu appears when the UniScript command window is active. * - "Main" - This menu appears when no MDI window is available in the UniPlot main window. This is normally the case after UniPlot has be started. .. uparam:: nMenu *nMenu* is the position of the menu. The entry that lies furthest left (normally the File Menu) has the position 1. .. uparam:: nItem *nItem* is the position of the menu within the menu *nMenu*. .. us.example **Example** :: MnRemove("Editor", 5); .. seealso:: :ref:`overview-menus`, :ref:`MnAppend`, :ref:`MnInsert`, :ref:`MnDrawMenuBar` :sub:`id-1515303`