INPUT
Documentation | Blog | Demos | Support
INPUT
0 out of 5 stars
5 Stars | 0% | |
4 Stars | 0% | |
3 Stars | 0% | |
2 Stars | 0% | |
1 Stars | 0% |
Gets serial input from the application user.
Syntax
INPUT «target»
Parameters
target | A list of one or more global or local variables, form fields, menu items, parameters, or macros, in any combination. Subscripted (array) variables are valid. Each item must be separated from the next by a space. |
Comments
INPUT provides a simple means of reading a line of input from the application user. The line of input is divided into literal strings based on the delimiter character currently in effect. The literals are assigned to the variables and macros specified in target, in order from left to right.
Example
input TestVar fEmpform.LastName Param1 < CommandName> <3>
When the above command pauses for input, the following constants can be input by the application user:
32 Smith abc LIST abc_def
If current delimiter is the space character, the constants are assigned as follows:
TestVar | 32 |
fEmpform.LastName | Smith |
Param1 | abc |
#< CommandName> | LIST |
#<3> | abc_def |
The following sequence of entries accomplishes the same effect, but uses the comma as the delimiter:
set delimiter “,”
input TestVar fEmpform.LastName Param1 < CommandName> <3>
32,Smith, abc,LIST, abc_def
Attention
When using the following construction, a “:” must be placed at the end of the OUTPUT string:
OUTPUT “Please, respond with Yes or No (Y/N): “;
input vResponse
See Also
0 out of 5 stars
5 Stars | 0% | |
4 Stars | 0% | |
3 Stars | 0% | |
2 Stars | 0% | |
1 Stars | 0% |