kieu manh > 21-09-21, 11:23 AM
kieu manh > 25-09-21, 05:03 PM
Function ConnectDataName(Ip As String, Port As Long, FileName As String, SQL As String) As ADODB.Recordset
Rem Ham ConnectDataName nay thay the cho ==> Conn As ADODB.connection = da ket noi toi CSDL
Rem Sau khi ket noi tra ve kieu du lieu la ADODB.Recordset
Set LoadCOM = RPC.NewInstance("VB6Library.cLoadCOM")
Set ConnectDataName = LoadCOM.ConnectDataName(Ip, Port, FileName, SQL)
If Not LoadCOM Is Nothing Then Set LoadCOM = Nothing
End Function