Loop Through a DataSet


/ Published in: VB.NET
Save to your folder(s)

Assuming your DataSet (named, ds) is already populated with Data and contains only one table.


Copy this code and paste it in your HTML
  1. For Each DataRow As DataRow In ds.Tables(0).Rows
  2. Dim outData as String
  3. outData = DataRow("fieldName").toString
  4. Next

URL: http://codefinds.blogspot.com/2008/12/loop-through-dataset.html

Report this snippet


Comments


You need to login to view comments.