Specifications

Commands - 56
INPUT
Statement
SYNTAX: INPUT [,#n][;] var [,var] .....
INPUT [,#n][;] "prompt message"; var [,var] .....
INPUT [,#n][;] "prompt message", var [,var] ....
PURPOSE: The INPUT statement causes the program to pause and prompt an operator for input data.
REMARKS: The prompt message is a question mark in the first syntax. The other two syntaxes specify a message
string to be printed before the question mark. No question mark will be printed if a comma is used in
place of a semicolon after the prompt message.
If the INPUT statement is followed immediately by a semicolon, the carriage return that you type at
the end of the variable list will be ignored and the cursor will remain on the same line.
The variables may be both numeric and string. The data you enter at the prompt must match the
variable type. Strings do not require the use of quotation marks. If a string is entered when a
numeric variable is required, a <Redo> error is given and all the variables must be reentered.
When multiple variables are used, separate the input data with commas. If fewer variables are entered
than specified with the INPUT statement, a '??' prompt will be given for the remainder.
The only editing you can do on an input line is the backspace. You can abort the INPUT statement
by executing <CTL-C>, which will also stop the program.
Even though the serial ports accept any character from 0 to 255, the INPUT statement filters these to
the 32 to 127 ASCII set.
When the # is specified, n is the source number. For example #2 is COM2. If the # is omitted, the
default is COM1.
RELATED: none
EXAMPLE: 10 INPUT "Input pH, volume";PH,VO
RUN
Input pH, volume? _
ERROR: none