Click here to Skip to main content
15,028,757 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Here is a code snippets, please explain terms that are in bold

Public Function ryanMod_getManualRTVHeader(ByVal objConn As ADODB.Connection, ByVal DunsNbr As Long, ByVal DunsSuffix As Long, ByVal transNum As String, Optional ByVal QueryTimeout As Long) As ADODB.Recordset

    Dim strSQL As String
    Dim RS As ADODB.Recordset
    strSQL = "Select * from table1"
    Set RS = New ADODB.Recordset

    With RS
        .CursorLocation = adUseClient
        .CursorType = adOpenForwardOnly
        .ActiveConnection = objConn
        .LockType = adLockReadOnly
        .Source = strSQL
    End With
    Set ryanMod_getManualRTVHeader = RS
    Exit Function
    Set ryanMod_getManualRTVHeader = Nothing
    Err.Raise vbObjectError, "Application", Err.Description
End Function

This function retrieves the content and displayed in the Asp classic. I want to know which statement is used to display the content.
Not really a question, and, in my opinion, a bad way of learning things.

1 solution

None of the highlighted terms display anything - they all just set properties or call methods on the RS object

This causes the sql to be run which populates the recordset which is returned to the caller.
♥…ЯҠ…♥ 22-May-12 1:44am
Rs.CursorLocation = adUseClient
Rs.CursorType = adOpenForwardOnly
Rs.ActiveConnection = objConn
RS.LockType = adLockReadOnly

What are these terms, i want to know the meaning of these properties. Thats it

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900