title: VB.NET array = array
body: <p>I'm trying to create a program in which I'm assigning array to array. They are declared like that:</p>
  
  <p>Const Deck_Size = 52</p>
  
  <p>Private Deck(Deck_Size), Table_Deck(Deck_Size) As String</p>
  
  <p>So, in my program I have written this line:</p>
  
  <p><strong>Deck = Table_Deck</strong></p>
  
  <p>And what this does, how i can understand from results I'm getting, that "Table_Deck" pointer have been assign to "Deck". For e.g.</p>
  
  <p>Table_Deck = "As","Ks","Qs","Js",...</p>
  
  <p>Deck = "2h", "3h", "4h", "5h",...</p>
  
  <p>After this code line: Deck = Table_Deck, I have this:</p>
  
  <p>Table_Deck = "As","Ks","Qs","Js",...</p>
  
  <p>Deck = "As","Ks","Qs","Js",...</p>
  
  <p>And here comes the problem. </p>
  
  <p>When the next code line is done (which is: <strong>Table_Deck(1) = Table_Deck(4)</strong>), I get this result: <strong>Table_Deck = "Js","Ks","Qs","Js",...</strong>, but as well "Deck" changes too...</p>
  
  <p><strong>Deck = "Js","Ks","Qs","Js",...</strong></p>
  
  <p>So, I assume that this is pointers fault. Can anyone tell me how I can solve this problem, if I want to change element in only one array.</p>