MaxCol() - get the maximum columns in a window or application window
Enhances the CA-Clipper MaxCol() function
──────────────────────────────────────────────────────────────────────────────

Syntax

MaxCol( [<lMode>] ) --> nColumns

Arguments

<lMode> when passed a .F. or nothing returns the number of columns
within the currently active window (default). When passed a .T., returns
the numbers of columns in the application window.

Returns

A numeric value representing the number of columns within the current
window or the application window.

Description

MaxCol() replaces the existing CA-Clipper function of the same name. By
default this function will return the number of columns within the
current window.

Without MrWindow, this is always the application window (or Window 0).

By using MrWindow and opening your own windows, MaxCol() may return
different values depending upon the size of the currently active window.

To get the number of columns available in the application window, you
can pass a value of .T. to this function.


Example

Display the highest column number:

wOpen(20, 20, 40, 50)
? MaxCol() // returns a value for the window
? MaxCol(.T.) // retruns a value for the application window size

Files: Library is MRWINDOW.LIB.