Table of Contents

Advertisement

DIM
Purpose
The DIM instruction declares an array specification.
Form
DIM <variable>(<subscription maximum value>
{,Subscription maximum value>}){ ,<variable>(
Subscription maximumvalue>
{, Subscription maximum value>})}
Description
(1) <variable> indicates the name of the array.
(2) Subscription maximum value> can be described using
numeric expression.
If the evaluated result is a real
number, it is automatically rounded.
The smallest
value of a subscript is 0.
When DIM A( 10) is declared,
the number of elements will be 11(0 to 10).
The
smallest value can be set as 1 using OPTION BASE.
(3) The number of Subscription maximum value> in
parentheses determines the array dimension size.
No
limits are prescribed for numbers of dimensions and
elements, although one array size must be 64Kbytes or
less
(4) When an array is declared and if the array is
numeric, all the elements are initialized with Os.
If
the array is character, it is initialized with null
string.
3-44

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents