Data statement DIM
If there is insufficient information on this page and you wish learn more about DIM, please send an email to firstname.lastname@example.org. You can help to improve information about DIM by submitting an article using the comments link below. Note, an offline language reference text file is now avialable – see the Download section.
The array will have (upper-lower)+1 elements. If
lower is not specified, and
OPTION BASE hasn’t used, elements start at 0.
REM One dimension array of 7 elements, starting from 0 DIM A(6) ... REM One dimension array of 6 elements, starting from 1 DIM A(1 TO 6) ... REM Three dimension array DIM A(1 TO 6, 1 TO 4, 1 TO 8) ... REM Allocating zero-length arrays: DIM z() ... IF LEN(Z)=0 THE APPEND Z, "The first element"