WLastCol() - returns rightmost column of the active window
returns rightmost column of the active window
──────────────────────────────────────────────────────────────────────────────
Syntax
WLastCol( [ <lAfterCentre> ] [, <nWindow> ] ) --> nValue
Arguments
<lAfterwCentre> when passed a .T. returns the rightmost column of the
window after a wCentre has taken place. When passed a .F., returns the
current leftmost column of a window
<nWindow> optional numeric parameter used to specify the window to
apply the function to.
Returns
WLastCol() returns a numeric value of either the difference between the
border of a window and the formatted area of the window, or the
rightmost column of a formatted window.
If an invalid window is passed down, WLastCol() return -1.
Description
WLastCol() may be used to get the leftmost column of a window.
The optional <lAfterwCentre> may be used to get the position of the
rightmost column, after a wCentre() call has been made, without actually
making the call.
With the optional <nWindow> parameter, WLastCol() may be applied to any
window.
Files: Library is MRWINDOW.LIB.