Tags
2 dimensional, 2D, array, arrays, multi dimensional, ragged, redim, redim preserve, sparse, ubound, vbscript
After wasting lots of time on trial and error, I decided to find out what the low-level difference was between vbscript arrays addressed as (x,y) and (x)(y). Eric Lippert explained it better than I can, so just read his explanation. If you want some code to demonstrate how things work, download my 2D array test. It has a lot of in-line comments and should give you an idea of when you should use (x)(y) and when you should use (x,y).
Continue reading