[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 WLASTCOL()
 Returns the position of the rightmost column of the active window
------------------------------------------------------------------------------
 Syntax

     WLASTCOL([<lAfterWCENTER>]) --> nColumn

 Argument

     <lAfterWCENTER>  Designates an optional parameter.  If this
     parameter is .T., the function returns what the position of the
     rightmost column would be after a call of WCENTER().  (This function
     does not call WCENTER().)  The default value (.F.) returns the current
     position.

 Returns

     WLASTCOL() returns the position of the rightmost window column, relative
     to the physical screen.

 Description

     The WCOL() function allows you to determine the leftmost column (left
     border) of a window.  To avoid complex calculations, you can use the
     WLASTCOL() function to determine the rightmost column (right border) of
     a window.

     The returned value can be greater than that of the rightmost column of
     the screen.  In such an instance, the window overlaps the right border.

     Additionally, by setting the logical parameter to .T., the position a
     window occupies after a call of WCENTER() is returned without actually
     calling WCENTER().

 Example

     A window is moved:

     ? WLASTCOL() > MAXCOL()     // .T.  Window overlaps border


See Also: WCOL()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson