PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • 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 the PHP sites.
New in version 16
PHP This function is now available for the PHP sites.
PHP This function is now available for the 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(<Name of Initial Menu> , <Name of Option to Create> , <Caption of Option to Create> , <URL Associated with Option>)
<Result>: Integer
Position of the option in the menu. A fatal error occurs if the option was not added.
<Name of Initial Menu>: Character string (with or without quotes)
Name of the menu into which the menu option must be added. The menu option will be added at the end of this menu.
<Name of 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 of Option to Create>: 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.
<URL Associated with Option>: 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))
Components
WEBDEV - Server code wd230page.dll
Linux wd230page.so
Minimum required version
  • Version 14
Comments
Click [Add] to post a comment