This should be a simple one for the gurus out there. Take a look at the code and then see if you can help me.
Ok, the plan was to create a 2D array called array2 where array2[0][0] was "num1" and array2[0][1] was "num2" and so on. Simple enough?
What I didn't realize is that even though I assigned array1 (which was "num1" & "num2"
to the first element of array 2 BEFORE moving on, when I was finished, "num3" & "num4" were the only things in array2. The result looked like this:
I hope I made sense enough. Now I realize I can't overwrite the same array and assign it to different elements of the second array, but why does it do this? I hope someone knows.
Thanks, Kevin
slanek@ssd.fsi.com
Code:
array1[0] = "num1";
array1[1] = "num2";
array2[0] = array1;
array1[0] = "num3";
array1[1] = "num4";
array2[1] = array1;
What I didn't realize is that even though I assigned array1 (which was "num1" & "num2"

Code:
array2[0][0] ----- num3
array2[0][1] ----- num4
array2[1][0] ----- num3
array2[1][1] ----- num4
Thanks, Kevin
slanek@ssd.fsi.com