title: populating a 2 column multi dimensional array VB.net
body: <p>I am having issues assinging values to a multi-dimensional array.</p>
  
  <p>I am trying to build a 2 col, unlimited row array and populate with data from a data reader.</p>
  
  <pre><code>Dim tblArry(,) As String = {}
  
  If reader.HasRows Then
    While reader.Read()
        ' Call Read before accessing data.
        Dim tempTbl As String = "tblLang" &amp; reader.Item(0)
        Dim tempTblTwoLett As String = reader.Item(1)
  
        tblArry = New String(tempTbl, tempTblTwoLett)
  
  ' Tried this too....
  tblArry = {New String(tempTbl, New String(tempTblTwoLett)} 
  ' and this...
  tblArry = New String(tempTbl), New String(tempTblTwoLett)
  </code></pre>
  
  <p>When I use a Jagged Array I can get this to work. The Reader portion is working just fine, but the coding is just not clean for this problem.</p>
  
  <p>Any suggestions would be appreciated.</p>
  
  <p>Thanks</p>