ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Window functions
  • Uppercase/Lowercase characters
  • Current window
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Identifies the window currently in edit.
Remark: The current window is the window in focus: this window is in input mode and its title bar is active.
Example
// Nom de la fenêtre en cours
ResFenEnCours = CurrentWin()
Syntax
<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).
Remarks

Uppercase/Lowercase characters

The window name can be written in uppercase or lowercase characters. The "~=" operator (loose equality) should be used to compare the window name returned by CurrentWin with a hard-coded window name.
For example:
IF CurrentWin() ~= "SaisieFenêtre" THEN
	...
END

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 gains 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: wd300obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/24/2024

Send a report | Local help