ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Menu functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
MenuDelete (Function)
In french: MenuSupprime
AjaxNot available
Deletes a menu or a menu option.
WINDEV You can delete options from the main menu or from a context menu
WEBDEV - Server codeLinuxPHP Only the menus, options and separators added through programming (with MenuAddMenu, MenuAddOption and MenuAddSeparator) can be deleted.
Example
// Delete the "OPT_Exit" option from the "FileMenu" menu
MenuDelete(FileMenu.OPT_Exit)
Syntax

Deleting a menu Hide the details

MenuDelete(<Menu name>)
<Menu name>: Character string
Name of the menu to delete.

Deleting a menu option Hide the details

MenuDelete(<Option name>)
<Option name>: Character string
Name of the menu option to delete, in the following format: "<Menu name>.<Option name>".
This option will be permanently deleted from the menu.

Deleting a menu option by its index Hide the details

MenuDelete(<Menu name> , <Option rank>)
<Menu name>: Character string
Name of the menu containing the option to delete. It can be a main menu or a popup menu.
<Option rank>: Integer
Rank of the option to delete from the menu (the ranks start from 1).
This option will be permanently deleted from the menu.
Component: wd300obj.dll
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 04/06/2023

Send a report | Local help