Helper;
I have an observation about what you want to do.
Let suppose you have the following 2D array:
1 2 3
4 5 6
7 8 9
Now, the user want to append data to the second row. Let say the data is:
3 3
Your updated array will be:
1 2 3 0 0
4 5 6 3 3
7 8 9 0 0
Notice the addition of the zeros, which are necesary to complete the array. Seems to me that you will need some sort of memory to remember where the data must be posted in the remaining rows, because if not, if the user wants now to append data to the first row, he may get the following result:
1 2 3 0 0 4 0 2
4 5 6 3 3 0 0 0
7 8 9 0 0 0 0 0
Assuming the new data was [4 0 2].
Of course, something can be programmed to make sure that the rows are updated correctly, or that the
collected data can be interpreted correctly. On the other hand, it may be easier if you create five 1-D arrays and that when the user select where to store the data, the appropriate array is selected. You should be able to create something easily with a Case structure.
Regards;
Enrique
www.vartortech.com