Wrong number of dimensions

You referred to an array with a different number of dimensions than it actually has -- for example, referring to an array as X(2,4), an array with two dimensions, when it has been defined as Dim X(5), a one-dimensional array.