This code
07: ReDim newArray(0)
08: ReDim oldArray(0)
'populating newArray
40: wscript.echo "redimming oldArray to length of " & UBound(newArray)
41: ReDim oldArray(UBound(newArray))
42: wscript.echo UBound(oldArray)
43: oldArray = newArray
results in the following output:
redimming oldArray to length of 19
19
D:\Scripts\test.vbs(43, 2) Microsoft VBScript runtime error: Type mismatch
How can I make a copy of "newArray()"? (Created via this question)