Difference between revisions of "INPUT"
From Recital Documentation Wiki
Helengeorge (Talk | contribs) (→Class) |
Helengeorge (Talk | contribs) |
||
Line 1: | Line 1: | ||
− | |||
− | |||
==Purpose== | ==Purpose== | ||
Read an expression from the keyboard | Read an expression from the keyboard | ||
Line 29: | Line 27: | ||
==Products== | ==Products== | ||
− | Recital | + | Recital |
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Commands]] | [[Category:Commands]] | ||
[[Category:Input Output]] | [[Category:Input Output]] | ||
[[Category:Input Output Commands]] | [[Category:Input Output Commands]] |
Latest revision as of 16:54, 11 November 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