[<<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()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson