Array Variable

Array indices are positive 32 bit integers. You can declare arrays with multiple dimensions.


Array bounds can also be enumerated.


The lower bound is always constant and may be a constant expression. You can declare variable sizes for the upper bound for dynamic arrays and in procedure parameters.

You can declare an array with a parameterized size as a local value in a procedure. The upper bound can be an expression composed with input paramters and constants. The lower bound must still be a constant expression.


Declaring variable sized arrays in procedure parameters is done by specifying the upper bound as a variable name with a leading star. The variable is a passes into the procedure as a Word parameter. You reference the bound in the procedure by the name. When you pass in the array on a procedure call the value of the array bound is implicitly passed.


If the bound variable is never referenced in the procedure, omit the name and just code a star. This example could also be written more simply as:

Enumeration and Structure

Arithmetic Expression