I have 2 lists, SortedValuesA and SortedValuesB.
Heres the code I have a problem with.....
VB Code:
Dim SortedValuesb As New List(Of String()) Dim SortedValuesa As New List(Of String()) . . . 'I assign a 28 arrays to List SortedValuesa 'Pull some out of A and add to B . . . SortedValuesa = SortedValuesb MsgBox(SortedValuesa.Count) SortedValuesb.Clear() MsgBox(SortedValuesa.Count)
Now when this runs, the fist MSGBOX gives me 18, which is correct. Now the second MSGBOX gives me 0.... Thats my problem.
By saying A=B they are now linked? So clearing B will clear A? How do I fix this?
I'm using B as a buffer to hold temporary values pulled from A. The next step beyond this code is to do a few more layers of "stripping" until I have the final arrays that I need.
