Hello Guru's! I am having a bit of an issue defining a variable 2d array. After searching around for a while and reading others posts I am stumped. Basically, my code works fine if I define the size of the 2d array up front, but if I try to leave the dimensions of the array open from the beginning the code errors out.
Here is my code so far:
So as you can see right off the bat I define the dimensions of the array as 20 by 2, but is there a way to modify this so that the initial dimension of the array is left variable? I realize I can redim the array down the line in the code once I determine the final x value, but can it be done up front similar to a one dimension array? For instance I have this code previously used to build a 1d array of unique values:Please Login or Register to view this content.
how do I accomplish a similar redim of a 2d array with my code?Please Login or Register to view this content.
Bookmarks