Help / WLanguage / WLanguage functions / Controls, pages and windows / Menu functions
  • Opening an Active WEBDEV Page
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Stored procedures
<Menu>.AddURLOption (Function)
In french: <Menu>.AjouteOptionURL
AjaxNot available
Adds a new option after the last option of a drop-down or context menu. This menu option opens the page that corresponds to the specified URL.
// Add a new menu
_Menu.AddMenu("MNU_Site", "My Site")
// Add an option into the new menu
MNU_Site.AddURLOption("OPT_PCSOFT", "PC Soft", "")
<Result> = <Source menu>.AddURLOption(<Option to create> , <Caption> , <Option URL>)
<Result>: Integer
Position of the option in the menu. If the option is not added, a fatal error occurs.
<Source menu>: Menu name
Name of the menu to which the menu option should be added. The option will be added after the last option in this menu.
Remark: This name can correspond to a context menu.
PHP Context menus are not available.
<Option to create>: Character string
Name of the menu option to add. This name will be used to programmatically handle the menu option. If there is an option with the same name, a fatal error occurs.
<Caption>: Character string
Text of the new menu option. This text will be displayed in the page and will allow users to select the option.
<Option URL>: Character string
Address of the page to open when the option is selected.
WEBDEV - Server codeWindows

Opening an Active WEBDEV Page

You can use <Menu>.AddURLOption to open an Active WEBDEV Page. In this case, you can use <Page>.Address to build the URL of this page. For example:
MENU_Menu1.AddURLOption("OPT_AWPPage", "Active WEBDEV Page", PAGE_AWP.Address())
Component: wd280page.dll
Minimum version required
  • Version 23
Click [Add] to post a comment

Last update: 06/19/2023

Send a report | Local help