I have an arraylist. In specific intervals of time I want to get the
data from this array list, clear it, and start putting new data in it.
But I run into problem.
Me code:
Dim ar1 as New ArrayList
' Code to add items to ar1
Dim ar2 as New ArrayList
ar2 = ar1
ar1.Clear
At this point the ar2 also is cleared. Why, and how to prevent?