title: how to suplay data in vb net the dataset with stored procedure
body: <p>I  made code vb net, to can display in my form , I call data using dataset, my coding like below</p>
  
  <pre><code>Public Function GetTableRow(ByVal strsql As String) As DataSet
  
          Dim conn As New SqlConnection
          Dim sDa As New SqlDataAdapter(strsql, conn)
          Dim ds As New DataSet
          Try
              sDa.Fill(ds)
          Catch ex As Exception
  
          End Try
          sDa.Dispose()
          Return ds
      End Function
  
  
      Private Sub CmRefresh_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CmRefresh.Click
  
          Dim ds As New DataSet
          Dim conn = "server='server'; database='database'; user=user;password='password';"
          Dim strsql As String = "exec spSPDMonStockProductHarian '" &amp; 230 &amp; "'"
          ds = conn.GetTableRow(strsql)
  
   With Listdata
              .DataSource = ds.Tables(0)
          End With
          Koneksi.Close()
          Koneksi.Close()
      End Sub
  </code></pre>
  
  <p>My problem when I execute this program, error message   </p>
  
  <pre><code>"Public member 'Function' on type 'String' not found."
  </code></pre>
  
  <p>I didn't get what the problem , so any solution will appreciate!!</p>