ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Caution: In WEBDEV, the Alias property works in a different way than in WINDEV and WINDEV Mobile.
WINDEV Mobile The Alias property is used to get or change:
  • the alias of a window. To change the alias of a window, you can also use WinChangeAlias.
    Reminder: Aliases can be used to identify a window opened multiple times (common case in an MDI application).
Example
AndroidAndroid Widget IOS Widget
// Open a new child window
OpenChild(WIN_Child, sFileName)
{sFileName}..X = 10
// {sFileName} = alias of the window
// -- Opening code of WIN_Child
PROCEDURE WIN_Child(sFileName)
MySelf.Alias = sFileName
// Define the alias
// Changes the title of the window that was just opened
{sFileName}..Title = "File = " + {sFileName}..Alias
Syntax
AndroidAndroid Widget iPhone/iPadIOS Widget

Getting the alias of a window Hide the details

<Current alias> = <Window>.Alias
<Current alias>: Character string
  • Alias of the window,
  • Empty string ("") if the specified window has no alias.
<Window>: Window name
Name of the window used. This parameter can be equal to:
  • MySelf. If you want to get the alias of the current window, for example.
  • an indirection to the alias of the window. The alias will be known at runtime. The name of the alias is unknown when the code is compiled.
AndroidAndroid Widget iPhone/iPadIOS Widget

Changing the alias of a window Hide the details

<Window>.Alias = <New alias>
<Window>: Window name
Name of the window used. This parameter can be equal to:
  • MySelf. If you want to get the alias of the current window, for example.
  • an indirection to the alias of the window. The alias will be known at runtime. The name of the alias is unknown when the code is compiled.
<New alias>: Character string
New window alias.
Remarks
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 12/02/2024

Send a report | Local help