Returns the row coordinate of the upper-left corner of the active or specified window.
WLROW([WindowName]) |
Parameters
- WindowName
- Specifies the window for which WLROW(В ) returns the row coordinate. In Visual FoxPro, you can also specify the name of a toolbar. If you omit WindowName, WLROW(В ) returns the row coordinate of the active output window. You can also use the empty string for WindowName to specify the main Visual FoxPro window. In Visual FoxPro, if no window is active, WLROW(В ) returns the row coordinate of the main Visual FoxPro window relative to the Windows desktop. If a system window (the Command window, the Data Session window, a Browse window, and so on) has been opened and is visible or hidden (its name appears on the Window menu), you can include its name in WLROW(В ). If you specify the name of a system window that is closed, Visual FoxPro generates an error message. The Debug window is an exception. Once the Debug window has been opened, its name can be included in WLROW(В ) if it is visible, hidden, or closed.
Return Value
Numeric
Remarks
The value returned by WLROW(В ) depends on the current video display mode, and the row coordinate is relative to the main Visual FoxPro window. The display mode can be changed with SET DISPLAY.
Windows can be positioned off the main Visual FoxPro window. If the top of the window is above the main Visual FoxPro window, WLROW(В ) returns a negative value. If the top of the window is below the bottom of the main Visual FoxPro window, WLROW(В ) returns a positive value greater than the height of the main Visual FoxPro window.