Difference between revisions of "INPUT"
From Recital Documentation Wiki
Yvonnemilne (Talk | contribs) |
Yvonnemilne (Talk | contribs) |
||
Line 34: | Line 34: | ||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Commands]] | [[Category:Commands]] | ||
+ | [[Category:Input Output]] | ||
+ | [[Category:Input Output Commands]] |
Revision as of 11:00, 24 June 2009
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