title: how to split array data in vb.net?
body: <p>I have a datatable that returns a column name location which is a combination of city,state and zipcode,i have stored that column values in an array. now i want to split the array data and store in another array.
  here is the code but it is not working.</p>
  
  <pre><code>Dim eTemp As DataTable = dt.DefaultView.ToTable(True, "Location")
  Dim s() As String
  Dim Count As Integer = PortCodeTemp.Rows.Count - 1
  ReDim s(0 To Count)
  For i = 0 To Count
      s(i) = PortCodeTemp.Rows(i).Item("Location")
      For t As Integer = 0 To Count
          Dim items As String() = s.Split(",".ToCharArray())
      Next
  Next
  </code></pre>