Swapping array references

  • Thread starter Thread starter R Avery
  • Start date Start date
R

R Avery

Suppose i have

Dim vntArray1() as string,vntArray2() as string

is there anyway to swap the pointers of the two arrays? I want
vntarray1 to point to vntarray2's data and vice versa. I am OK if the
method requires the pointers to be re-swaped before de-allocation of the
array's memory.
 
Unfortunately, you can't swap arrays without copying each
element.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top