(25 pts) Copying Array to Array
Posted on 2000-04-07
In Visual Basic 5 / 6, if you have the array MyArray(256), and you have NewArray(256), you can't copy the contents of the first array to the second with code like this :
NewArray = MyArray
It gives an error saying can't assign to array. I could loop through and copy each index of MyArray(256) to NewArray(256), but that's very inefficient and there's got to be a built in way to copy entire arrays to another array.
Can anyone help? I need sample code please.