PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
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
<Menu>.Exist (Function)
In french: <Menu>.Existe
Indicates whether a menu option exists in a menu.
Example
// If the option does not exist yet
IF MyMenu.Exist("OpenCustomer" + ID) = False THEN
// Add the option
MyMenu.AddOption("OpenCustomer" + ID, "Open the form" + ID, OpenForm, ID)
END
Syntax
<Result> = <Menu>.Exist(<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>: 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: wd270obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment