Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: VBfunction
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.
Posted 21-May-12 19:22pm
SAKryukov at 22-May-12 1:24am
Not really a question, and, in my opinion, a bad way of learning things. --SA

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.
rk_prabakar at 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)

  Print Answers RSS
Your Filters
0 Sergey Alexandrovich Kryukov 940
1 OriginalGriff 543
2 Abhinav S 253
3 thatraja 245
4 Emre Ataseven 200
0 Sergey Alexandrovich Kryukov 8,282
1 OriginalGriff 4,750
2 Peter Leow 3,784
3 Maciej Los 3,515
4 Er. Puneet Goel 3,107

Advertise | Privacy | Mobile
Web03 | 2.8.140415.2 | Last Updated 22 May 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid