GiulioCesare
02-03-2005, 09.47.34
Salve ragazzi ho un problema con un connessione Odbc, ad un database mysql,
come faccio a far ricevere ad una FlexGrid i relativi campi della
tabella?Ecco qui il mio codice
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim MyConnection As New OdbcConnection("DSN=mysqlNET")
Dim MyCommand As New OdbcCommand()
MyConnection.Open()
MyCommand.Connection = MyConnection
MyCommand.CommandText = "SELECT * FROM tabella"
MyDataReader = MyCommand.ExecuteReader
AxMSHFlexGrid1.Text
End Sub
come faccio a far ricevere ad una FlexGrid i relativi campi della
tabella?Ecco qui il mio codice
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim MyConnection As New OdbcConnection("DSN=mysqlNET")
Dim MyCommand As New OdbcCommand()
MyConnection.Open()
MyCommand.Connection = MyConnection
MyCommand.CommandText = "SELECT * FROM tabella"
MyDataReader = MyCommand.ExecuteReader
AxMSHFlexGrid1.Text
End Sub