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

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
0 OriginalGriff 475
1 Maciej Los 339
2 Richard MacCutchan 225
3 BillWoodruff 219
4 Suraj Sahoo | Coding Passion 155
0 OriginalGriff 8,759
1 Sergey Alexandrovich Kryukov 7,407
2 DamithSL 5,639
3 Maciej Los 5,269
4 Manas Bhardwaj 4,986

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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100