Download PDT 1100 Terminal Programmer`s Guide

Transcript
PDT 1100 Terminal Programmer’s Guide
!
!
!
!
A DIM instruction can appear anywhere before the first use of the array in a source
program. However, to prevent errors, place all your DIM instructions together near
the beginning of the program and not in the program execution loops.
Up to 2-dimensional array variables can be declared.
In declaring an array string variable, you can specify the string length. If its
specification is omitted, the default value of 20 characters takes effect.
If no subscript is specified for a string variable, Compiler regards the string variable
as a non-array string variable so that the default for a non-array string variable, 40
characters, takes effect.
Syntax Error
Error Code and
Message
Meaning
error 7: Variable
name redefinition
The array declared with DIM had been already declared with
DEFREG.
error 71: Syntax
error
stringlength is out of range.
error 72: Variable
name redefinition
A same variable name is declared twice inside a same DIM
statement.
A same variable name is used for a non-array variable and array
variable.
stringlength is not an integer constant.
error 78: Array
More than 30 variables are declared inside one DIM statement.
symbols exceed 30 for
one DIM statement
10-38