Click here to Skip to main content
12,457,384 members (58,305 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: VB
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
        .Open
    End With
    
    Set ryanMod_getManualRTVHeader = RS
    
    Exit Function
    
ErrorTrap:
    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
Comments
SAKryukov 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
 
good
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.
  Permalink  
Comments
rk_prabakar 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
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160826.1 | Last Updated 22 May 2012
Copyright © CodeProject, 1999-2016
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