Toshiba KB-80 Computer Keyboard User Manual


 
- 6 -
Error process
Statement
ON ERROR Format ON ERROR GOTO <line number>
Function Declares that the interrupt for the error process is enabled, and declares
the line number of the subroutine to be executed when an error occurs.
RESUME Format RESUME [0]
NEXT
<line number>
Function Terminates an error process, and resumes execution of the program.
ERL/ERR Format ERR/ERL
Function Provides the line number in which an error occurs (ERL) and the error
code (ERR).
Display input/output
Statement
CLS Format CLS
Function Clears the screen.
PRINT Format PRINT [ <expression list> ] [;]
? [ <expression list> ] [;]
Function Displays the character string and contents of the variable on the screen.
LOCATE Format LOCATE [ <line> ] [, [ <column> ] [, < <switch> ] ] ]
Function Specifies the position of the cursor on the screen.
Sound output
Statement
BEEP Format BEEP
Function Sounds the internal buzzer.
Keyboard entry
Statement
INPUT Format INPUT [;] [” <prompt statement> ” ; ] <variable> [, <variable> ] ···
Function Reads a numeric value or a character from the keyboard, and assigns it
to a variable.
Reads the whole line input from the keyboard (max. 255 characters), and
assigns it to a variable.
INKEY$ Format INKEY$
Function Provides the leading character if any key is pressed on the keyboard, or
provides a null string if no key is pressed on the keyboard.
INPUT$ Format INPUT$ ( <no. of characters> [, [#] <file number> ] )
Function Reads the character string with the specified length from the keyboard or
the file.