Identifies the window currently in edit.
Remark: The current window is the window that has focus: this window is in edit and its title bar is active.
// Name of current widow
ResCurrentWin = CurrentWin()
<Result>: Character string
- Name of the window currently in edit,
- Alias of the window currently in edit (if this alias was specified when the window was opened).
The window name can be written in uppercase or lowercase characters. The "~=" operator (flexible equality) should be used to compare the window name returned by CurrentWin with a hard-coded window name.
IF CurrentWin() ~= "EditWindow" THEN
The <Result> of CurrentWin depends on the event where CurrentWin is called:
|Calling event||Result of CurrentWin.|
|The window gains focus||Name of the current window (window that takes focus).|
|The window loses focus||Name of the current window (window that loses focus).|
|Resizing the window||Name of the current window (window is resized).|
|Initializing the window||Empty string ("").|
|Global declarations||Name of the previous window (window where the child window will be opened).|
|Closing the window||Name of the current window (window that is closed).|
|Initializing the control|
- Name of the previous window.
- An empty string ("") if there is no previous window.
To find out the window currently run, you have the ability to use the MyWindow