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>screensize()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 SCREENSIZE()
 Queries the number of characters that can be displayed on a screen or window
------------------------------------------------------------------------------
 Syntax

     SCREENSIZE(<lMode>) --> nScreenSize

     Warning!  Contains <lMode>, an additional optional parameter over
     and above CA-Clipper Tools.

 Argument

     <lMode>  If this parameter is designated as .T., then SCREENSIZE()
     returns the size of the physical screen; otherwise, it returns the size
     of the selected window.  The default (.F.) is the selected window size.

 Returns

     SCREENSIZE() returns the number of bytes available for screen output, in
     an active window, or the physical screen.

 Description

     SCREENSIZE() determines the screen size memory in bytes.  With 25 lines
     and 80 columns, there are exactly 2000 characters.  For each character,
     there is also an attribute byte that results in 4000 bytes of screen
     memory.

     If SCREENSIZE() is called without parameters or with .F., it returns the
     active window size.  When called with .T., it returns the physical
     screen size.

 Example

     Display the number of available bytes:

     WOPEN(10, 10, 20, 70)      // Open a window
     ? SCREENSIZE()             // Size of window
     ? SCREENSIZE(.T.)          // Size of physical screen


See Also: NUMCOL() MAXROW()

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