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>wflastcol()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 WFLASTCOL()
 Returns the position of the rightmost column of the formatted area of a
 window
------------------------------------------------------------------------------
 Syntax

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

 Argument

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

 Returns

     The function either returns the position of the rightmost column 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.

     When you use <lRelative>, you can determine the difference between the
     outer border and formatted area of a window.  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: WLASTCOL() WFCOL() WFROW() WFLASTROW() WFORMAT() WBOX()

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