Help / WLanguage / WLanguage functions / Controls, pages and windows / Window functions
  • Uppercase/Lowercase characters
  • Current window
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Stored procedures
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> = 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).

Uppercase/Lowercase characters

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.
For example:
IF CurrentWin() ~= "EditWindow" THEN

Current window

The <Result> of CurrentWin depends on the event where CurrentWin is called:
Calling eventResult of CurrentWin.
The window gains focusName of the current window (window that takes focus).
The window loses focusName of the current window (window that loses focus).
Resizing the windowName of the current window (window is resized).
Initializing the windowEmpty string ("").
Global declarationsName of the previous window (window where the child window will be opened).
Closing the windowName 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 keyword.
Component: wd290obj.dll
Minimum version required
  • Version 9
This page is also available for…
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help