02-13-2014, 06:06 PM
i have 2 multiminesional arrays..
how to join them into one..
how to join them into one..
how to join two multidimensional array
|
02-13-2014, 06:06 PM
i have 2 multiminesional arrays..
how to join them into one..
02-14-2014, 03:53 PM
Get the Count of Second Array. Redim He first Array with the Second Array count and loop through the Second Array and append all the values of Second Array to first Array.
let me know if you want code snippet also.
02-17-2014, 03:33 PM
(This post was last modified: 02-17-2014, 03:34 PM by venkatesh9032.)
can u provide syntax..
02-18-2014, 12:07 AM
Redim will erase all the existing elements from the array, and Redim Preserve does not work on 2-D(or multidimensional array).
Venkatesh, you can first resize the array keeping the old elements intact and then you can assign the value of the 2nd array to first. I have written the following function which can be used as Redim Preserve on 2-D array. Code: 'function to increase the size of Array "arr" you can make the function robust by using conditions that would check that the new dimension is more than the previous dimension. Tweak the code and apply logic. you should get it !!
02-18-2014, 12:50 PM
Thank you buddy
|
« Next Oldest | Next Newest »
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Sort multidimensional array | SBsteven | 8 | 9,045 |
03-14-2014, 02:49 PM Last Post: anuj.bajaj |
|
How to convert a single dimension array to two dimensional array | venkatesh9032 | 3 | 5,541 |
02-10-2014, 03:07 PM Last Post: pranikgarg |
|
Adding array to another Global array in VB Script | test911 | 1 | 3,174 |
12-02-2012, 12:40 PM Last Post: parminderdhiman84 |