AT&T 6300 Programmer's Manual page 296

Gwbasic by microsoft
Hide thumbs Also See for 6300:
Table of Contents

Advertisement

INPUT
Statement
Syntax
prompt
variable
Remarks
7-140
Allows input from terminal during program
execution.
INPUT[;][prompt$;]variable[$,variable]...
is a string constant enclosed in quotation marks which
prompts for the necessary input
is a numeric or string variable which receives the input
When an INPUT statement is encountered,
program execution pauses and a question
mark is printed to indicate the program is
waiting for data. If "PROMPT" is included,
the string is printed before the question mark.
The required data is then entered at the
terminal.
A comma may be used instead of a semicolon
after the prompt string to suppress the
question mark.
If INPUT is immediately followed by a
semicolon, then the CR typed by the user to
input data does not echo a CR LF sequence.
The data that is entered is assigned to the
variable(s) given in the variable list. The
number of data items supplied must be the
same as the number of variables in the list.
Data items must be separated by commas.
The variable names in the list may be numeric
or string variable names (including
subscripted variables). The type of each data
item that is input must agree with the type
specified by the variable name. Strings input
to an INPUT statement need not be
surrounded by quotation marks.

Advertisement

Table of Contents
loading

Table of Contents