Using DataRead As MySqlDataReader = cmd.ExecuteReader(CommandBehavior.CloseConnection) If DataRead.HasRows() Then dt.Load(DataRead) If DataRead.HasRows Then If DataRead.Read Then Dim result As String = DataRead.GetString(0) Dim name As String = DataRead.GetString(1) DataRead.Close End If End If End If End Using
Using DataRead As MySqlDataReader = cmd.ExecuteReader(CommandBehavior.CloseConnection) If DataRead.HasRows() Then dt.Load(DataRead) End If End Using
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)