<<

Contents

Search

>>

 

REDIM

 

 

Instruction

 

 

Syntax:

REDIM <Name of Variable>(<Index>)

 

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

 

Meaning:

Redefines the array <Name of Variable>. A new array is created. All elements of the new array are set to 0 or ²².

 

The number of indices must match the number of indices of the old array.

 

Note: The content of the old array is deleted.

 

Parameter:

Name of Variable

Name of array variable

 

Sample:

DIM A(10)

A(1) = 12

 

REDIM A(20) /* A has now 21 elements (0,...,20)

 

See also:

SHARED

DIM