Hi,
I have 2 arrays, I don't know their length...
I wanna copy both arrays into 1 single array.
So the length of output array will be sum of my 2 input arrays.
I know I should use Array.Copy but don't know how, for my case, it won't merge the contents of 2 arrays into 1.
Anyone can help me?
I also used this but won't work:
Thanks
I have 2 arrays, I don't know their length...
I wanna copy both arrays into 1 single array.
So the length of output array will be sum of my 2 input arrays.
I know I should use Array.Copy but don't know how, for my case, it won't merge the contents of 2 arrays into 1.
Anyone can help me?
I also used this but won't work:
Visual Basic:
ReDim OutputArray(InputArray1.Length + InputArray2.Length - 1)
Array.Copy(InputArray1, OutputArray, InputArray1.Length)
Array.Copy(InputArray2, OutputArray, InputArray2.Length)
Thanks
Last edited: