xHarbour Reference Documentation > Function Reference |
Returns the bottom row position of the usable area in a formatted window.
WfLastRow( [<lHeight>] ) --> nBottomRow
WfLastRow() returns the bottom row position of the formatted area in the current window, or the height of this area, as a numeric value.
Note: when the window with ID 0 (entire screen) is selected, the return value is determined by WBoard().
See also: | WBox(), WLastRow(), WfCol(), WfLastCol(), WfRow(), WFormat() |
Category: | CT:Window , Windows (text mode) |
Source: | ct\ctwin.c |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
// The example demonstrates return values of functions for window // coordinates. PROCEDURE Main LOCAL nWin SET COLOR TO W+/B CLS nWin := WOpen( 5, 10, 15, 70 ) WSelect( nWin ) WFormat( 6, 11, 14, 68 ) SET COLOR TO W+/R CLS ? WRow() , WCol() // result: 5 10 ? WLastRow() , WLastCol() // result: 15 70 ? WfRow() , WfRow(.T.) // result: 6 1 ? WfCol() , WfCol(.T.) // result: 11 2 ? WfLastRow(), WfLastRow( .T. ) // result: 14 1 ? WfLastCol(), WfLastCol( .T. ) // result: 68 2 Inkey( 0 ) WClose() RETURN
http://www.xHarbour.com