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


Syntax:     KEYBOARD <expC>

Purpose:    To stuff the keyboard buffer with a string.

Argument:   <expC> is the string to stuff into the keyboard buffer.

Usage:      KEYBOARD is used in combination with commands and functions
            that expect keyboard input as data and control information.
            These can be wait states such as ACCEPT, INPUT, and READ, or
            interface functions such as ACHOICE() and DBEDIT().

            As a typical example, you can use KEYBOARD from within a SET
            KEY procedure to reassign keys in a wait state.  Another use
            is within the ACHOICE() user function.  Here you input the
            keys you want ACHOICE() to execute before returning control
            to it.  The same concept applies to the DBEDIT() user
            function.

            Note that KEYBOARD clears the keyboard buffer before
            stuffing the specified character string.

Library:    CLIPPER.LIB


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

   This example stuffs the keyboard in order to return with one entry
   key.  "Q" and a carriage return exits each menu, simulating a RETURN
   TO MASTER.

   KEYBOARD "Q" + CHR(13) + "Q" + CHR(13) + "Q" + CHR(13)


See Also: SET KEY CHR() LASTKEY() NEXTKEY()

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