10 rem Insert statements for data entry here input "Is this data correct"; a$ answer$ = left$(a$, 1) if answer$ <> "y" and answer$ <> "Y" then_ print "Re-enter data" : goto 10 rem Insert statements for data processing here endprompts
Is this data correct?The question mark (displayed by the computer) is a prompt requesting the user to make an entry. In this example if the first letter is either "y" or "Y", the program will go on to process the data just entered. Otherwise, the program prints "Re-enter data" and returns to the data entry statements at line 10.
input #FileNum, [;] [Prompt;] Var[, Var]...
input #FileNum, [;] [Prompt,] Var[, Var]...
is the synopsis of the input # statement for terminal input (as described above) when FileNum refers to a file that is a terminal. Although the organization of these manual pages implies the older, less flexible system, this organization is maintained only for convenience, input and input # do not differ functionally. The difference in behavior between terminal input and disk file input depends entirely upon the type of file in use.
If the environment variable BASECHO is set to a non-null value when a Basmark QuickBASIC program begins executing, the BASIC input/output facility operates differently in order to support half-duplex terminals such as the IBM 3278. In this modified behavior of the input/output facility, the terminal modes are not altered, so that the usual erase and kill processing and echoing of terminal input are performed. In the specific case of input, appearance of the semicolon following input will not cause suppression of the echo of the newline; the semicolon is simply ignored.
An "Overflow" error occurs if the value of a data item exceeds the precision of the associated variable.
from The Basmark QuickBASIC Programmer’s Manual by Lawrence Leinweber