WINDOW()
Purpose
Function to check if the specified window is the active, or output window
Syntax
WINDOW([<window-name>])
See Also
ACTIVATE WINDOW, CLEAR WINDOWS, DEACTIVATE WINDOW, DEFINE WINDOW, HIDE WINDOW, MOVE WINDOW, RELEASE WINDOWS, RESIZE WINDOW, RESTORE WINDOW, SAVE WINDOW, SHOW WINDOW, WCOLS(), WEXIST(), WONTOP(), WOUTPUT(), WROWS(), WVISIBLE()
Description
The WINDOW() function is used to determine which window is the currently active, or output window. A window is an area of the screen designated for output and input. Windows are created with the DEFINE WINDOW command, and are activated with the ACTIVATE WINDOW command. There is no limit to the number of defined windows. With no parameter, the WINDOW() function will return the name of the active window as a character string in upper case. If no windows are active, the WINDOW() function returns a null string. WINDOW() returns .T. if the window specified by <window-name> is the active window, otherwise .F..
Example
define window one from 0.0 to 10,10 define window two from 0,40 to 10,50 activate window one activate window two ?window() TWO ?window("ONE") .F.
Products
Recital