Table of Contents

INPUT

Prompts the user for typing a line of text or numbers, finished by RETURN/ENTER; may be used for reading from devices

Implemented by: dartmouth3, ansimin, ansifull, hptsb, decbasic, Altair, a2int, Applesoft, TI994, msatari, trs80, level2, trscolor, colormc, Sinclair, Atom, GWBASIC, MSX, bwbasic, bw32, ABasiC, QBasic, VBDOS, FreeBASIC, Gambas, minibasicmm, minibasicjs, EndBASIC

With variations: CBM, Atari (no prompt string), ataplus (allowed prompt string, which would replace the ? prompt), atxl (allowed prompt string, which would replace the ? prompt), trsdisk (with the # for sequential files), level3 (INPUT#LEN variation), BBC (also as INPUT#)

Also written as:

Usage

Variations

Examples

Very early versions of INPUT accepted numbers only.

A common variation allows a message to be displayed before the ? prompt:

10 INPUT "What is your name"; N$

Comments

Similar keywords

In other languages...

References