08-13-2007 05:07 PM
08-13-2007 06:00 PM
You can not have a true 2D array and not have the sizes be the same. Each column must have the same number of rows and each row must have the same number of columns.
To do what you are asking you would have to "simulate" it. You could have a cluster of 1D arrays with each cluster element being a "column". Probably the best option if your number of columns are known/deterministic.
Or, you could convert it to an 2D array of strings (each element is the string of the number) and have empty strings in the empty elements (do this if you are only viewing the array, not if you have to convert back to numbers again).