PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Starting an AWP page of the project
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
MenuAddURLOption (Function)
In french: MenuAjouteOptionURL
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.
Example
// Adds a new menu
MenuAddMenu(_Menu, "MNU_Site", "My Site")
// Adds an option into the new menu
MenuAddURLOption("MNU_Site", "OPT_PCSOFT", "PC Soft", "http://www.windev.com")
Syntax
<Result> = MenuAddURLOption(<Source menu> , <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.
Remarks
WEBDEV - Server codeWindows

Starting an AWP page of the project

You have the ability to use MenuAddURLOption to start an AWP page of the project. In this case, PageAddress can be used to build the URL of this page. For example:
MenuAddURLOption(MENU_Menu1.OPT_Option1, "OPT_AWPPage", "AWP page", PageAddress(PAGE_AWP))
Component : wd240page.dll
Minimum version required
  • Version 14
Comments
Click [Add] to post a comment