Modifies the alias of a window.
Reminder: An alias is used to differentiate between the same window opened several times (frequent in an MDI application).
// Opens a new MDI window.
// WINDEV chooses an alias.
sAliasName = MDIOpen(WIN_EditCustomer, "New customer", Value1, Value2)
// Use a custom alias
WinChangeAlias(sAliasName, "TEMP0001")
Syntax
<Result> = WinChangeAlias(<Former alias> , <New alias>)
<Result>: Boolean
- True if the name change was performed,
- False if the operation was not performed (a window with the same alias already exists).
<Former alias>: Character string
Alias that must be modified.
<New alias>: Character string
New alias for the window.
Remarks
This function is equivalent to the
Alias property.
{<Former alias>}..Alias = <New alias>