我不知道ADODB.Recordset是什么

use*_*432 0 c# vb6 vb6-migration

我正在将VB6应用程序转换为C#.我开始在VB6应用程序的顶部,并从那里开始.什么是RS.东西?我不明白?

Sub Main()
    Dim RS As ADODB.Recordset
    Dim FileName As String, FilePath As String
    Dim Test As Boolean
    Dim ResultCode As xcdError

    Dim oAccess As Access.Application
    Dim Zip_File As String

    On Error GoTo ErrorHandler

    ' Make a connection to the database
    Call MakeDBConnection

    ' Create a recordset of the directories to check
    Set RS = New ADODB.Recordset

    RS.ActiveConnection = DB
    RS.CursorType = adOpenDynamic
    RS.LockType = adLockOptimistic
    RS.Open "Select ConversionDefinition.* From ConversionDefinition"
    ' Check the directories for Raw Data
    ' If the required data is found, then start the coversion application
    If Not (RS.EOF And RS.BOF) Then
        RS.MoveFirst
        Do While Not (RS.EOF)
Run Code Online (Sandbox Code Playgroud)

Wil*_*orn 5

你应该读这个:

http://www.w3schools.com/ado/ado_recordset.asp

它很好地解释了它.它是一个ADO DabaBase RecordSet.