V
vbmark
I am calling a Visual Basic 6 DLL to that returns a Record Set.
Here is my code in my VB.NET program.
Dim objRS
objRS = oMyObject.ReturnRecordSet()
If Not objRS Is Nothing Then
Do While Not objRS.EOF
sw.WriteLine(objRS("UserID"))
sw.WriteLine(objRS("UserName"))
objRS.MoveNext()
Loop
End If
What happens is objRS just returns System.__ComObject.
How do I get this to work? That is, to get the returned Record Set and
then be able to enumerate through the records.
Here is my code in my VB.NET program.
Dim objRS
objRS = oMyObject.ReturnRecordSet()
If Not objRS Is Nothing Then
Do While Not objRS.EOF
sw.WriteLine(objRS("UserID"))
sw.WriteLine(objRS("UserName"))
objRS.MoveNext()
Loop
End If
What happens is objRS just returns System.__ComObject.
How do I get this to work? That is, to get the returned Record Set and
then be able to enumerate through the records.