How can i tell if a certain table is already in the dataset?
Printable View
How can i tell if a certain table is already in the dataset?
VB Code:
Dim bolTableExists As Boolean Dim myTable As DataTable myTable = myDataSet.Tables("TableName") If myTable = Nothing Then bolTableExists = False Else bolTableExists = True End If
You obviously don't need to use the boolean values, basically just use the tables property to find the dataset.
works great.