Error objeto
Publicado por Cristian (90 intervenciones) el 22/02/2019 20:49:25
Hola a todos.. Este codigo me tira un error .. alguna idea ?
Gracias
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Public Function FnMostrarClientes() As DataTable
Try
FnConectado()
cmd = New MySqlCommand("select * from clientes")
If cmd.ExecuteNonQuery >= 1 Then
Dim dt As New DataTable
Dim da As New MySqlDataAdapter(cmd)
da.Fill(dt)
Return dt
Else
Return Nothing
End If
Catch ex As Exception
MessageBox.Show(ex.Message)
Return Nothing
Finally
FnDesconectado()
End Try
End Function
Gracias
Valora esta pregunta


0