title: VB.Net Dataset checking null
body: <p>Using vb.net and sql server</p>
  
  <p>so I the dataset like this:</p>
  
  <pre><code>Dim ds3 As New FOCUSDataSetTableAdapters.GajiTableAdapter
  </code></pre>
  
  <p>and I want to get the item in the dataset into an array. but the dataset is empty for now.. so I try..</p>
  
  <pre><code>Dim smp As New List(Of String)()
  
   Try
    For i = 0 To ds3.GetData.Count - 1
     If (ds3.GetData.Rows(0).Item(3) Is Nothing) Then
      smp.Add("0")
    End If
  
     Next
        Catch ex As Exception
          i = i - 1
  
          End Try
  </code></pre>
  
  <p>So basically what I want is.. If the database is null/empty then add the "0" to array. But everytime I run this code it only gives me error state that there is now row at current position (0)... </p>