INPUT |
Top Previous Next |
Syntax INPUT OPT prompt as STRING,var as ANYTYPE Description Gets data from the console window. Parameters prompt - [in] Optional text to display on input line. var - [out] Variable to store input. Return value None Remarks OPENCONSOLE must have been executed prior to using the INPUT statement. The optional string is a prompt. The statement will wait until the user has entered the proper data. Returns when the ‘enter’ key is pressed. Valid variable types are CHAR, WORD, INT, UINT, INT64, UINT64, FLOAT, DOUBLE, and STRING. Numeric input is converted with VAL. Strings do not include the new line character. The maximum string input is 255 characters. See Also: VAL Example usage DEF A$:string |