en:input [BASIC 256 - Language Documentation]

# BASIC 256 - Language Documentation

en:input

## Input (Statement)

### Format

input prompt_expr, string_variable$
input prompt_expr, numeric_variable
input string_variable$
input numeric_variable
input prompt_expr, string_array_variable$[index]
input prompt_expr, numeric_array_variable[index]
input string_array_variable$[index]
input numeric_array_variable[index]
input prompt_expr, string_array_variable$[index, index]
input prompt_expr, numeric_array_variable[index, index]
input string_array_variable$[index, index]
input numeric_array_variable[index, index]

### Description

Waits for the user to type a line of text into the text output window. When the user hits the enter or return key, the line is read in to a string_variable or a numeric_variable.
User may optionally be prompted for the input by prompt_expr.
If a numeric variable is specified and non-numeric data is entered a zero will be assigned to the numeric variable.
References to array elements may also be specified.

### See Also

Alert, Confirm, Input, Key, Prompt

en/input.txt · Last modified: 2014/02/09 20:35 by admin