[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 MAXCOL()
 Extends the CA-Clipper MAXCOL() function
------------------------------------------------------------------------------
 Syntax

     MAXCOL([<lMode>]) --> nMaxColumn

 Argument

     <lMode>  When .F. is passed, or when no parameter is specified, the
     function returns the highest column number of the selected window.  When
     .T. is passed, it returns the highest column number for the entire
     screen.  The default value (.F.) returns the highest column number for
     the selected window.

 Returns

     MAXCOL() returns the highest column number available within a window or
     within the physical screen.

 Description

     MAXCOL() is also a CA-Clipper function.  Without parameters, or when
     specifying .F., MAXCOL() always returns a value for the selected window.
     In the absence of CA-Clipper Tools, this value is always Window 0, which
     is exactly the same size as the entire screen.  However, if the extended
     driver CTUS.LIB and the CA-Clipper Tools window functions are
     implemented, this value can change.  If you want the highest column for
     the entire screen, regardless of the window selected, you can pass .T.
     for the optional <lMode> parameter.

 Note

     .  The explanation of this function was taken from the Video
        Functions chapter and placed in the Extended Driver chapter.  Now all
        CA-Clipper Tools functions that replace and/or extend CA-Clipper
        functions when CTUS.LIB is linked in are in the same chapter.  The
        extensions to the CA-Clipper versions of these functions are only of
        interest when used in conjunction with the other extended driver
        functions and their accompanying windows.

 Example

     Display the highest column number:

     WOPEN(10, 10, 20, 70)            // Open a window
     ? MAXCOL()                       // Relates to a window
     ? MAXCOL(.T.)                    // Back to the physical screen


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