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


Syntax:     INPUT [<prompt>] TO <memvar>

Purpose:    To enter an expression from the keyboard and place the
            result in a specified memory variable.

Arguments:  <memvar> is the name of the memory variable where the result
            of the evaluation is placed.

Options:    Prompt: The <prompt> is an expression of any data type
            displayed before the input area.

Usage:      INPUT takes entry from the keyboard as an expression of any
            type.  The expression is evaluated and the result is stored
            to the specified memory variable.  If the variable does not
            exist, it is created.

            Pressing Return terminates entry of the expression.  If no
            expression has been entered, INPUT terminates without
            further action.  The memory variable remains unchanged or,
            if it does not exist, undefined.

Notes:      . INPUT is a wait state.
            . Esc performs no function with INPUT

Library:    CLIPPER.LIB


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

   INPUT "Expression: " TO exp

   IF TYPE("exp") <> "U"
      ? exp
   ELSE
      ? "No expression entered."
   ENDIF


See Also: ACCEPT WAIT

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