Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Books 1-3 - <b>wfrow()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 WFROW()
 Returns the position of the top row of the formatted area of a window
------------------------------------------------------------------------------
 Syntax

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

 Argument

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

 Returns

     The function either returns the position of the top 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.  Four functions (WFCOL(), WFLASTCOL(), WFROW(),
     WFLASTROW()) allow you to establish the coordinates of the formatted
     area of a window.  This information can 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 transmit this value later when
     you use the WFORMAT() to restore the old value.

 Note

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

 Example

     Every WFXXX() output corresponds to the currently selected window.
     Please notice that WBOX() corresponds to 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: WROW() WFCOL() WFLASTCOL() WFLASTROW() WFORMAT() WBOX()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson