INPUT
From Recital Documentation Wiki
Revision as of 12:54, 30 April 2009 by Yvonnemilne (Talk | contribs)
Class
Input/Output
Purpose
Read an expression from the keyboard
Syntax
INPUT [<expC>] TO <memvar>
See Also
@...GET, ACCEPT, DIALOG GET, INKEY(), READ, STORE, WAIT
Description
The INPUT command displays the prompt <expC> on the screen, or a ":" if none is specified, and then reads any valid expression from the keyboard. The expression is evaluated, and the result is stored in the specified <memvar>. If you want to INPUT a character string, then you must enclose the string in quotes, i.e. '...', "...", or [...]. If you enter an invalid expression then the following message will be displayed:
Syntax error, try again
You must then re-input an answer to the prompt.
Example
input "Replace with what? " to value Replace with what? PRICE*1.2
Products
Recital Terminal Developer