Instruction Manual
184 Language Reference • Reference
Publication 1398-PM601A-EN-P — October 2000
WORDS
CALL
Call Subroutine Program Structure
Purpose Call a subroutine to be executed. After the subroutine is completed, execution returns
to the statement following the CALL statement.
Syntax CALL subroutine
subroutine The name of the subroutine. Subroutine names can be up to 32
alphanumeric characters long. Names cannot be keywords or
reserved words. They must begin with a letter and contain only
alphanumeric characters and underscores ( _ ).
Remarks All variables have global scope. Therefore if they are changed by a subroutine the
main program and all other subroutines will see the change in the variable as well.
See Also RETURN, SUB, JUMP
Example
CALL SUB1
CALL SETUP
CLEAR
Clear Operator Terminal Operator Terminal
Purpose Clear the Operator Terminal screen. If no row is specified the entire screen is cleared
and the cursor is moved to the upper left corner.
Syntax CLEAR [row[, column, length]]
CLR [row[, column, length]]
row If only a row is specified, that row on the Operator Terminal
screen is cleared, and the cursor is moved to the beginning of that
row.
column, length The length is the number of characters to be cleared starting at the
row, column. In this case, the cursor ends up in the row and col-
umn position specified.
Remarks
See Also PRINT, READ
Example
CLEAR ;Clear the whole Operator Terminal
CLEAR 2 ;Clear row 2 on Operator Terminal
CLR 2, 3, 5 ;Clear 5 characters starting at row 2, column 3