Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Clipper Tools One Guide - <b>dsettype()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
DSETTYPE()

Syntax:     DSETTYPE()

Returns:    A numeric value.


Usage:      DSETTYPE() can be used to establish the size of the
            keyboard buffer set by Clipper with SET TYPEAHEAD.  Use
            this function to establish the number of characters that can
            be placed in the keyboard buffer with KEYSEND().

Note:       The TYPEAHEAD keyboard buffer is an intermediate memory
            area within Clipper, which operates as a function of the
            system buffer.

            The standard setting in Clipper for TYPEAHEAD is 16
            characters (this corresponds to the size of the system buffer).
            Two bytes must be set up in the keyboard buffer for each
            character to be processed in a Clipper program.
            DSETTYPE() will determine the number of characters, not the
            number of bytes! The standard size of the buffer is
            therefore not 16, but 32 bytes.

Library:    CT1.LIB


--------------------------------- Example ------------------------------

Examples:   counter = DSETTYPE()

            IF counter = 16
               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