Home | Sign in | English EN
  • Starting an AWP page of the project
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Stored procedures
<Menu>.AddURLOption (Function)
In french: <Menu>.AjouteOptionURL
AjaxNot available
Adds a new menu option at the end of a page menu. This menu option is used to display the page corresponding to the specified URL.
Versions 16 and later
PHP This function is now available for PHP sites.
New in version 16
PHP This function is now available for PHP sites.
PHP This function is now available for PHP sites.
// Adds a new menu
_Menu.AddMenu("MNU_Site", "My Site")
// Adds an option into the new menu
MNU_Site.AddURLOption("OPT_PCSOFT", "PC Soft", "http://www.windev.com")
<Result> = <Source menu>.AddURLOption(<Option to create> , <Caption> , <Option URL>)
<Result>: Integer
Position of the option in the menu. A fatal error occurs if the option was not added.
<Source menu>: Menu name
Name of the menu into which the menu option must be added. The menu option will be added at the end of this menu.
<Option to create>: Character string (with quotes)
Name of the menu option to add. This name will be used to handle the menu option by programming. A fatal error occurs if this name corresponds to an existing option.
<Caption>: Character string (with quotes)
Caption of the new menu option. This caption will be displayed in the page and it will allow the Web user to select the option.
<Option URL>: Character string (with quotes)
Address of the page to display when the option is selected.
WEBDEV - Server codeWindows

Starting an AWP page of the project

You have the ability to use <Menu>.AddURLOption to start an AWP page of the project. In this case, <Page>.Address can be used to build the URL of this page. For example:
MENU_Menu1.AddURLOption("OPT_AWPPage", "AWP page", PAGE_AWP.Address())
Component: wd260page.dll
Minimum version required
  • Version 23
Click [Add] to post a comment