PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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> , <Name of Menu Option>)
<Result>: Boolean
  • True if the menu option exists,
  • False otherwise.
Caution: The search is not recursive: if the menu contains a sub-menu that contains the option, <Result> will be set to False.
<Menu>: Character string (with or without quotes)
Name of the menu or name of the popup menu where the search will be performed.
<Name of Menu Option>: Character string (with or without quotes)
Name of the menu option to find.
Components
WINDEVReports and Queries wd230obj.dll
Windows Mobile wp230obj.dll
Linux wd230obj.so
Minimum required version
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment