ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
  • 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/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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.
WLanguage is less restrictive with control and page names than JavaScript: use of special characters, possibility of having two fields with the same name in the same Page, etc..
Controls and pages are renamed in HTML pages. These names can be compressed for optimization purposes.
The Alias property gets the name used in the HTML page.
Example
WEBDEV - Server codeWEBDEV - Browser codePHPAjax
// Récupération de la valeur d'un champ passé en paramètre
ValeurSaisie1 is string = PageParameter(SAI_Saisie1.Alias)
Syntax
WEBDEV - Server codeWEBDEV - Browser codePHPAjax

Getting 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
Name of the desired control or page.
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

Last update: 03/08/2024

Send a report | Local help