Hello,
I'm trying to set up multiple "pointers" to the same dynamic array, but can't seem to figure out how.
reading the MS Article on how to do this on http://msdn.microsoft.com/en-us/libr...ffice.10).aspx
I was expecting to be able to change a(1) by changing b(1) on the below code snippet, but can't seem to get it to work
The statement b=a seems to make an independent copy of a, rather than make b point to the same memory location of a
This becomes apparent when the statement b(1)=.222 changes b but not a as per the "Watches" window
Any ideas on how to set more than one pointer to the same dynamic array?
Help would be much appreciated, thanks.
Bookmarks