Previous Topic: LabelsNext Topic: Expressions


Declare Arrays

An array is an ordered arrangement of data elements. The script interpreter can only process one-dimensional arrays (vectors).

Example:

A vector of 12 elements, where the first element a[0] has the (numeric) value 444.

Dim ar[12] as integer
	0 - 11
	a[0] = 444

Note: Only basic types can declare arrays, but you can use arrays to declare user types.

Correct Examples
DIM a[25] as Integer
DIM b[100] as Boolean
Wrong Examples
TYPE T1
	A as Integer
	B as Char
END TYPE

DIM C[25] as T1