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>wait</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
WAIT


Syntax:     WAIT [<prompt>] [TO <memvarC>]

Purpose:    To pause program execution after displaying a prompt and
            then waiting until a key is pressed.

Options:    Prompt: The <prompt> is an expression of any data type
            WAIT displays if specified.  If no <prompt> is specified,
            the default prompt is:  "Press any key to continue..."

            Memory variable: The TO <memvarC> clause creates the
            specified memory variable that contains the character
            entered.

Usage:      WAIT returns the character entered into the specified
            character memory variable.  If a non-printable character is
            entered, WAIT returns zero to the character variable.
            Function keys are ignored unless assigned with SET FUNCTION
            or SET KEY.

            Note that WAIT is a wait state.

Library:    CLIPPER.LIB


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

   WAIT "Press a key..." TO key


See Also: ACCEPT INPUT INKEY()

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