[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 WFLASTROW()
 Returns the position of the bottom row of the formatted area of a window
------------------------------------------------------------------------------
 Syntax

     WFLASTROW([<lRelative>]) --> nValue

 Argument

     <lRelative>  Designates an optional parameter.  If this optional
     parameter is .T., then the function returns the absolute value of the
     difference between WLASTROW() and WFLASTROW().

 Returns

     The function either returns the position of the bottom row of the
     formatted area within a window, or the difference between the outer
     border and the formatted area of a window.

 Description

     This function is particularly useful if information in a window must be
     saved to a file.  There are four functions (WFCOL(), WFLASTCOL(),
     WFROW(), WFLASTROW()) which allow you to establish the coordinates of
     the formatted area of a window.  This information can then be saved for
     later use.

     In order to avoid complex calculations, you can determine the difference
     between the outer border and the formatted area of a window when you use
     the optional logical parameter.  You can pass this value later when you
     call WFORMAT() to restore the old value.

 Note

     .  When used in Window 0, the function returns the value for
        WBOARD().

 Example

     Notice that WBOX() corresponds to a WFORMAT(1, 1, 1, 1):

     CLEAR
     WOPEN(10, 10, 20, 70)
     WBOX()

     ? WFROW(), WFROW(.T.)              // 11, 1
     ? WFCOL(), WFCOL(.T.)              // 11, 1
     ? WFLASTROW(), WFLASTROW(.T.)      // 19, 1
     ? WFLASTCOL(), WFLASTCOL(.T.)      // 69, 1

     INKEY(0)
     WCLOSE()
     RETURN


See Also: WLASTROW() WFCOL() WFROW() WFLASTCOL() WFORMAT() WBOX()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson