Dim
Declares an array.
Dim name(size [, size...])
Parameters
- None.
Description
Makes an array: a numbered row, or grid, of values under one name, such as Dim scores(10). Each size is the highest number, and numbering starts at 0, so Dim scores(10) holds 11 values, from scores(0) to scores(10). Grids take a size for each direction: Dim map(20, 15). Using Dim again on the same array makes it afresh, with everything back to 0. Arrays made with Dim can be used everywhere in the program.
