[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
NEXTKEY()

    NEXTKEY() reads the next keystroke without removing it from the
    keyboard buffer.

Syntax

    NEXTKEY()

Returns

    An integer numeric value.

    NEXTKEY() returns a number from -39 to 386, identifying the ASCII code
    of the key pressed (the same value as returned by INKEY() and
    LASTKEY()).  If the keyboard buffer is empty, NEXTKEY() returns zero.

    NEXTKEY() returns values for all function, Alt-function, Ctrl-function,
    Alt-letter, and Ctrl-letter key combinations.

Usage

    Since NEXTKEY() does not remove the key from the keyboard buffer, you
    can use it to poll the keyboard and then pass control to a routine
    that uses a wait state to fetch the key from the buffer.

See Also: INKEY LASTKEY
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson