GetName Function

Class

AnyWin class, XmlNode class.

Action

Returns the name of the window declaration or XML object for the Classic Agent or the handle of the window in the UI for the Open Agent.

Syntax

sWinName = window.GetName()
Variable Description
sWinName
Classic Agent
The name of the window declaration or XML object.
Open Agent
The handle of the window in the UI.
STRING.

Notes

GetName returns the name or handle of the last window or object that is specified in a method call. For example, the name of the window with the path TextEditor.File.Open is Open. The name returned when you are using the Classic Agent is the one declared in the declarations file, not the actual name of the window at runtime.

Example

STRING sWinName
sWinName = MessageBox.GetName()