L
LDD
Hey folks
I'm porting an app from VB6 to VB.Net... what a process!
I'm about 70% of the way through.
However I'm trying to find some information on how to upgrade the code
snippet below to make use of ADO.Net
-----------------------------------------------------
....
Dim prsFiles As DAO.Recordset
prsFiles = frmMain.DefInstance.getDatabase.OpenRecordset("tableName",
DAO.RecordsetTypeEnum.dbOpenDynaset)
End Select
prsFiles.AddNew()
prsFiles.Fields("FileName").Value = vsfilename
prsFiles.Update()
prsFiles.Close()
-----------------------------------------------------
The subroutine gets called from within a loop.
How do I modify the code to use ado.net/
Or if there is any clear documentation with samples, that would be cool to..
thanks
LDD
I'm porting an app from VB6 to VB.Net... what a process!
I'm about 70% of the way through.
However I'm trying to find some information on how to upgrade the code
snippet below to make use of ADO.Net
-----------------------------------------------------
....
Dim prsFiles As DAO.Recordset
prsFiles = frmMain.DefInstance.getDatabase.OpenRecordset("tableName",
DAO.RecordsetTypeEnum.dbOpenDynaset)
End Select
prsFiles.AddNew()
prsFiles.Fields("FileName").Value = vsfilename
prsFiles.Update()
prsFiles.Close()
-----------------------------------------------------
The subroutine gets called from within a loop.
How do I modify the code to use ado.net/
Or if there is any clear documentation with samples, that would be cool to..
thanks
LDD