Toshiba KB-80 Computer Keyboard User Manual


 
- 18 -
COMMON
Function Declares the variable is to be passed from the original program to a program called
by the CHAIN statement.
Format COMMON <variable name> [, <variable name> ] ···
Term <variable name>: The variable name to be passed should be specified.
Explanation The COMMON statement is used together with the CHAIN statement, and declares
that a variable is to be passed from the original program to a called program.
The same variable name cannot be used more than once in the COMMON statement.
When the array variable is passed, two parentheses “( )” should be inserted after the
variable name to indicate it is an array.
When all the variables are to be passed, not the COMMON statement but the ALL
option in the CHAIN statement should be used.
A COMMON statement should be placed before the CHAIN statement.
When an array is to be passed to a called program, the array declaration should not
be performed by the DIM statement. However, it is necessary to previously perform
the array declaration by the DIM statement in the program to be called.