xHarbour Reference Documentation > Command Reference |
Assigns the result of an input expression to a variable.
INPUT [<xMessage>] TO <cVarName>
The INPUT command exists for compatibility reasons only. It is a very basic text-mode command that allows a user for entering an expression. The input character string is compiled with the macro operator (&) and the result of the compiled expression is assigned to a single memory variable.
During user input only the Return key is recognized as termination key. The Escape key does not terminate the INPUT command.
Note: if an invalid expression is entered, a runtime error is generated.
See also: | ACCEPT |
Category: | Input commands |
Source: | rtl\input.prg |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
http://www.xHarbour.com