PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

  • Differences between the Name and Alias properties
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: In WEBDEV, the Alias property works in a different way than in WINDEV and WINDEV Mobile.
WEBDEV - Server codeWEBDEV - Browser codePHP The Alias property 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 enables you to find out the name used in the HTML page.
Example
WEBDEV - Server codeWEBDEV - Browser codePHPAjax
// Retrieve the value of a control passed as 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 and Alias properties

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