dim Statement

Purpose:

Declares an array of unknow type

Syntax:

dim ay[256]

Comments:

The type of the array will be set when a value is first assigned to it.  Dim is usually not necessary since variables and arrays in Hex-Basic are loosely typed.

Example:

dim ab[4]

p ab  // ab is undefined

ab[1] = 3  // ab is now an integer array