|
-
Sep 13th, 2010, 03:01 PM
#1
Thread Starter
New Member
array copy
Hello,
I need to make a copy (clone) of the 1D array.
Dim array1() as F1Object
Dim copyarray() as F1Object
In my code I assigned values to the arra1
Redim copyarray(ubound(array1))
copyarray = array1
The problem is:
The copyarray changes automatically when I’m modifying the array1 because the “copyarray” is just reference to “array1”
How can I clone array1 to copyarray ?
Thank you
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|