how can i clear my data table? I am using VB.Net as my front end MySQL as my Back end.

how can i clear my data table? I am using VB.Net as my front end MySQL as my Back end.

Hi,

You can try something like this:

Private Sub ClearTable(table As DataTable)
     Try
         table.Clear()
     Catch e As DataException
	 ' Process exception and return.
          Console.WriteLine("Exception of type {0} occurred.", _
            e.GetType().ToString())
     End Try
 End Sub
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.