How to create a new instance of the same array?
Using a 2D array:
Code:
Public Shared Cells1 As Boolean(,)
Public Shared Cells2 As Boolean(,)
How do I set Cells2 equal to Cells1 but as a new instance? (So if I modify Cells2, Cells1 won't be affected.)
sets both arrays to the same instance,
Code:
Cells2 = New Boolean(,) {Cells1}
gives me a syntax error, and
Code:
Cells2 = New Boolean(,) {}
Cells2 = Cells1
acts like the first string of code.
How do I get this to work as expected? Thanks in advance.
~Nic
Re: How to create a new instance of the same array?