PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Uppercase/Lowercase characters
  • Current window
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Identifies the window currently in edit.
Note: The current window is the window that has focus: this window is in edit and its title bar is active.
Versions 15 and later
Android This function is now available for the Android applications.
New in version 15
Android This function is now available for the Android applications.
Android This function is now available for the Android applications.
Versions 16 and later
Universal Windows 10 App This function is now available for the Windows Phone applications.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
New in version 16
Universal Windows 10 App This function is now available for the Windows Phone applications.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
Universal Windows 10 App This function is now available for the Windows Phone applications.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 18 and later
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// Name of current widow
ResCurrentWin = 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. We recommend that you use the "~=" operator (flexible equality) to compare the window name returned by CurrentWin to a hard-coded window name.
For example:
IF CurrentWin() ~= "EditWindow" THEN
...
END

Current window

The <Result> of CurrentWin depends on the process where CurrentWin is called:
Calling processResult of CurrentWin
The window takes 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 ("")
Declaring the global variablesName 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.
Components
WINDEVReports and Queries wd230obj.dll
Windows Mobile wp230obj.dll
Java wd230java.jar
Linux wd230obj.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment