dimension TestArray(2) TestArray(1) = "ELEMENT A" TestArray(2) = "ELEMENT B" ? TestArray(1, 1) ? TestArray(2, 1) ? TestArray(3, 1) ? TestArray(4, 1)It prints:
ELEMENT A ELEMENT A ELEMENT A ELEMENT AI just ran across it while testing and debugging some code and I was getting strange results. It took me a minute or two to realize I was refering to a one dimensional array with two dimensional syntax because in this code I'm also working with some two dimensional arrays, but I was a little surprised when I found that I could refer to a row that doesn't exist (similar to the sample above). Arrrggh. This would cause an error in other languages.