Warning

You're browsing the old v2.x documentation. This version is no longer maintained. Click here to go the v3.x documentation.

This is an old revision of the document!


DIM

Syntax:

dim <any variable>[<byte or int x_dim> [, <byte or int y_dim>]]

The DIM directive defines an array. See the Arrays page for more information.

DIM can also be used to define a single variable without having to assign a value. For example:

dim x
rem -- x is now an uninitialized variable
print x
rem -- the above will print an undefined number