BB___DIM

=DIM= toc

Description
> Specifies the number of items (elements) that can be stored in an array. An array can be single dimensioned or double dimensioned.

Syntax

 * 1) dim //textArray$(size)//
 * 2) dim //numberArray(size)//
 * 3) dim //textArray$(size,size)//
 * 4) dim //numberArray(size,size)//
 * 5) dim //numberArray1(size), textArray$(size), numberArray2(size, size), ...//

Example
code format="lb" ' Separate DIM statements by a comma if on same line dim myArray(20), yourArray(20), ourArray(2, 20)

' using single dimension arrays for i = 1 to 20 myArray(i) = i       yourArray(i) = i + 20 print myArray(i); yourArray(i) next i

' ...and for double dimension arrays for i = 1 to 2 for x = 1 to 20 ourArray(i,x) = i*x print ourArray(i,x) next x   next i    end

code

Useful Functions
code format="lb" Place a useful function using this command here code