User Tools

Site Tools


en:input

Input (Statement)

Format

input prompt, variable
input variable
input prompt, array_variable [ index ]
input array_variable [ index ]
input prompt, array_variable [ row_index, column_index ]
input array_variable [ row_index, column_index ]

input float prompt, variable
input float variable
input float prompt, array_variable [ index ]
input float array_variable [ index ]
input float prompt, array_variable [ row_index, column_index ]
input float array_variable [ row_index, column_index ]

input integer prompt, variable
input integer variable
input integer prompt, array_variableindex ]
input integer array_variable [ index ]
input integer prompt, array_variable [ row_index, column_index ]
input integer array_variable [ row_index, column_index ]

input string prompt, variable
input string variable
input string prompt, array_variable [ index ]
input string array_variable [ index ]
input string prompt, array_variable [ row_index, column_index ]
input string array_variable [ row_index, column_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 user's input is stored in to a variable. If the user types in a valid number, the variable will contain an integer or floating point number and not a string. The conversion to a number (or not) may be forced by specifying INPUT FLOAT, INPUT INTEGER, or INPUT STRING.
User may optionally be prompted for the input by prompt.
References to array elements may also be specified.

See Also

History

1.99.99.14Added INPUT FLOAT, INPUT INTEGER, INPUT STRING and made INPUT try to assign variable the correct type (integer, float, or string) based upon the user entry.
en/input.txt · Last modified: 2016/08/13 12:13 by admin