<<

Contents

Search

>>

 

DIM

 

 

Instruction

 

 

Syntax:

DIM <Name of Variable>(<Index>) [,<Name of Variable >(<Index>)]...

 

<Index> = <NUMBER> [,<NUMBER>]...

 

Meaning:

Defines array variables. This definition can take place at any position in the macros.

 

Note: The observance of array borders in expressions with array variables is checked in the running program only if the checkbox Generate checking of array borders is set with the generation.

 

Otherwise crossings of arrays are not reported. Indices that are smaller than zero or bigger than the dimension lead to a runtime error.

 

Parameter:

Name of Variable

<VARNAME>

 

Sample:

DIM A(10),SALES_MONTH%(12,10)

A(11)=0 /* Error !!!  Out of bounds

 

SHARED variables can be defined as array in two ways:

 

DIM FIELD1(10,12)

SHARED FIELD1

 

or

 

SHARED FIELD1(10,12)

 

Not allowed:

DIM FIELD1(10,12)

SHARED FIELD1(10,12)

 

See also:

SHARED

REDIM