ArcBasicDocs

Input

Reads a line of text typed by the user.

Input ( [prompt$] )

Parameters

prompt$ (optional)
the question to show before the typing starts. Defaults to an empty string.

Description

Shows a question, waits for the player to type a line and press Enter, and gives back what they typed. Backspace works while typing. The answer is text; put it in a number variable and ArcBasic turns it into a number, so age = Input("How old are you? ") works. The program waits while the player types. Games that must keep running should read the keyboard with KeyHit and GetKey instead.

See also