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>dsettype()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 DSETTYPE()
 Determines the size of the keyboard buffer (SET TYPEAHEAD TO)
------------------------------------------------------------------------------
 Syntax

     DSETTYPE() --> nBufferSize

 Returns

     DSETTYPE() returns the current size of the CA-Clipper keyboard buffer.

 Description

     DSETTYPE() allows you to determine what size the CA-Clipper keyboard
     buffer has been set to with SET TYPEAHEAD TO.  You can use the function
     to determine the number of characters that can be placed in the keyboard
     buffer using KEYSEND().

 Notes

     .  The keyboard buffer is made of memory that is internal to
        CA-Clipper, which is independent of the system buffer.  In
        CA-Clipper, the standard setting for TYPEAHEAD is 16 characters.
        (This corresponds to the size of the system buffer.)

     .  For every character that is processed in a CA-Clipper program,
        two bytes must be allocated in the keyboard buffer.  DSETTYPE()
        determines the number of CA-Clipper characters, not the number of
        bytes!  The standard buffer size is not 16, but 32 bytes.

 Example

     The current size of the keyboard buffer is queried and increased if
     needed:

     nSize  :=  DSETTYPE()

     IF nSize < 256
        SET TYPEAHEAD TO 256
     ENDIF


See Also: KEYREAD() KEYSEND()

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