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

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

 Argument

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

 Returns

     WFCOL() returns the position of the leftmost 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.

     In order to avoid complex calculations, you can determine the difference
     between the outer border and the formatted area when you use the
     optional logical parameter.  You can then pass this value when you call
     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: WCOL() WFROW() WFLASTCOL() WFLASTROW() WFORMAT() WBOX()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson