PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

  • Differences between the ..Name property and the ..Alias property
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
Caution: The operating mode of ..Alias differs according to the product used: the operating mode in WEBDEV differs from the operating mode in WINDEV and WINDEV Mobile.
WEBDEV - Server codeWEBDEV - Browser codePHP ..Alias returns the internal HTML/Javascript name of a control.
Indeed, WLanguage is more permissive than Javascript regarding the names of controls and pages: use of special characters, possibility to have two controls with the same name in the same page, ...
Therefore, the controls and the pages are renamed in the HTML pages. Furthermore, this name can be compressed.
..Alias is used to find out the name used in the HTML page.
Example
WEBDEV - Server codeWEBDEV - Browser codePHPAjax
// Retrieve the value of a control passed in parameter
ValueEdit1 is string = PageParameter(EDT_Edit1..Alias)
Syntax
Syntax
WEBDEV - Server codeWEBDEV - Browser codePHPAjax

Finding out the internal HTML/Javascript name of an element Hide the details

<Current alias> = <Element name>..Alias
<Current alias>: Character string
Name of the element used in the HTML or Javascript code.
<Element name>: Character string (with or without quotes)
Name of control or page whose name is requested.
Remarks
WEBDEV - Server codePHPAjax

Differences between the ..Name property and the ..Alias property

..Name returns the WLanguage name of the control while ..Alias returns the HTML name of the control. To pass a control name in parameter to a Javascript procedure, use ..Alias.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment