title: alturnitives to dynamicly declaining variable names automaticly in vb.net
body: <p>i searched online to find out how to dynamically declare variable names automatically and i came up with no results. my approach to the code i'm simplifying is as follows:</p>
  
  <pre><code>dim choice1 as string
  dim choice2 as string
  dim choice3 as string
  ...
  </code></pre>
  
  <p>i wish i can approch this as follows</p>
  
  <pre><code>dim count as integer
  while count is 1 to 10
     count +=1
  end while
  dim (choice+count) as string
  ' it suppose to create variable choice with the addition to the name from 1    to 10 like choice1, choice2, choice3 and so on.
  </code></pre>
  
  <p>can you help me.</p>
  
  <p>ps: i also tried creating declared variables in an array like so:</p>
  
  <pre><code>dim count as integer
  Dim var As Array = {Dim choice1 as string, dim choice2 as string}
  while count is 1 to 10
       var.add(dim choice+count as string)
  end while
  </code></pre>