Hello:
The following function is in a class. I want to return the data to the form through this function. What is the proper way to do this please?
Public Class Database
Public cn As OleDbConnection
Public cmd As OleDbCommand
Public dr As OleDbDataReader
Public da As OleDbDataAdapter
Public ds As DataSet
....more stuff
Public Function ReadData(ByVal Value As String, ByVal DsName As String) As DataSet
Dim da As New OleDbDataAdapter(Value, cn)
Return da.Fill(ds, DsName)
End Function
..........More stuff
Thank you
The following function is in a class. I want to return the data to the form through this function. What is the proper way to do this please?
Public Class Database
Public cn As OleDbConnection
Public cmd As OleDbCommand
Public dr As OleDbDataReader
Public da As OleDbDataAdapter
Public ds As DataSet
....more stuff
Public Function ReadData(ByVal Value As String, ByVal DsName As String) As DataSet
Dim da As New OleDbDataAdapter(Value, cn)
Return da.Fill(ds, DsName)
End Function
..........More stuff
Thank you