Difference between revisions of "INPUT"
From Recital Documentation Wiki
Yvonnemilne (Talk | contribs) |
Helengeorge (Talk | contribs) (→Class) |
||
Line 1: | Line 1: | ||
− | |||
− | |||
Revision as of 14:37, 23 October 2009
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