title: List(of String) or Array or ArrayList
body: <p>Hopefully a simple question to most programmers with some experience. </p>
  
  <p>What is the datatype that lets me do this?</p>
  
  <pre><code>Dim lstOfStrings as *IDK*
  
  Dim String0 As String = "some value"
  Dim String1 As String = "some value"
  Dim String2 As String = "some value"
  Dim String3 As String = "some value"
  Dim String4 As String = "some value"
  Dim String5 As String = "some value"
  
  
  lstOfStrings.add(String0, String1, String2, String3)
  </code></pre>
  
  <p>I would access these like this</p>
  
  <pre><code>Dim s1 = lstOfStrings(0)
  Dim s2 = lstOfStrings(1) 
  Dim s3 = lstOfStrings(2) 
  Dim s4 = lstOfStrings(3)
  </code></pre>
  
  <p>if I use List(of String)
  I am only able to .add one thing to the list (at a time), and in my function I want to be able to store several values(at a time).</p>
  
  <p><strong>Solution:</strong></p>
  
  <pre><code>Private Function Foo() As List(Of String)
  
  
      Dim temp1 As String
      Dim temp2 As String 
      Dim temp3 As String 
  
      Dim temp4 As String 
      Dim temp5 As String 
      Dim temp6 As String 
  
      Dim inputs() As String = {temp1, temp2, temp3, temp4, temp5, temp6}
  
      Dim lstWriteBits As List(Of String) = New List(Of String)(inputs)
  
  
      Return lstWriteBits
  End Function
  </code></pre>