The BASIC DIM statement allows you to create a one or two dimension matrix. It is an executable statement with a high overhead. I have found programmers using the DIM statement in a loop. This is a poor use of the DIM statement and incurs a high overhead due to deleting and creating the matrix over and over. It is best practice to create the matrix once using the maximum size needed.