ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Menu functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
MenuExist (Function)
In french: MenuExiste
Indicates whether a menu option exists in a menu.
Example
// If the option does not exist yet
IF MenuExist(MyMenu, "OpenCustomer" + ID) = False THEN
	// Add the option
	MenuAddOption(MyMenu, "OpenCustomer" + ID, "Open the form" + ID, OpenForm, ID)
END
Syntax
<Result> = MenuExist(<Menu> , <Menu option>)
<Result>: Boolean
  • True if the menu option exists,
  • False otherwise.
Note: Search is not recursive: if the menu contains a submenu that contains the option, <Result> is False.
<Menu>: Menu name
Name of the menu or name of the context menu where the search will be performed.
<Menu option>: Character string
Name of the menu option to find.
Component: wd300obj.dll
Minimum version required
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 01/30/2025

Send a report | Local help