Returns the number of rows within the active or specified window.
WROWS([WindowName]) |
Parameters
- WindowName
- Specifies the window for which WROWS(В ) returns the number of rows. In Visual FoxPro, you can also specify the name of a toolbar. In Visual FoxPro, the value returned by WROWS(В ) depends on the font specified for the window. Most fonts can be displayed in a wide variety of sizes, and some are proportionally spaced. A row corresponds to the height of the current font. For more information, see the Fonts Overview topic. You can specify the name of a system window (the Command window, the Data Session window, a Browse window, and so on) in WROWS(В ) if the system window has been opened and is visible or hidden. If you specify the name of a system window that is closed, FoxPro generates an error message. The Debug window is an exception. Once the Debug window has been opened, its name can be included in WROWS(В ) if it is visible, hidden, or closed. You can also include the empty string in WindowName to return the number of rows in the main Visual FoxPro window. The empty string can be used to specify the main Visual FoxPro window in functions such as WLCOL(В ), WLROW(В ), and WCOLS(В ), which return window locations or sizes.
Return Value
Numeric
Remarks
If you don't specify a window name, the number of rows in the active output window is returned. If no window is active, the number of rows in the main Visual FoxPro window is returned.