Shopping Cart My Cart Account Log In Walkthrough IDE Integrations Contact Partner  
Polystyle
The Elegant, Intelligent Source Code Formatter

Click Here To Download A Free Trial!
C/C++   PerlPascal/Delphi
C#   CSSCMAC
Java Javascript   PHP 
JSP HTMLPython
ASP Visual BasicActionscript
Home Features Documentation Buy Polystyle Download  
Step 3: Formatted Visual Basic Source

  • Step 1: Unformatted Source
  • Step 2: Example Source
  • Step 3: Formatted Source

    Now that you've seen what Polystyle can do for you, why not download a copy and try it out yourself?


    Function AddParams (strProcName, intReportID, strErrDesc)
      Dim lngRetVal
      Dim objCmdParams
      Dim objCn
      Dim n
    
      On Error Resume Next
      Set objCmdParams = Server.CreateObject ("ADODB.Command")
      Set objCn = Server.CreateObject ("ADODB.Connection")
    
      objCn.open g_strConnect
    
      If Err = 0 Then
        ' First delete any existing param info in tblReportParams
    
        lngRetVal = Exec_asprep_del_tblReportParams (intReportID, strErrDesc)
    
        If lngRetVal <> 0 Then
          Response.Redirect "Error.asp?ErrNum=" & lngRetVal & "&ErrDesc=" & strErrDesc
          lngRetVal = 0
        End If
    
        ' Now gather up parameter info.
        With objCmdParams
          .Commandtext = strProcName
          .Commandtype = adCmdStoredProc
          Set.ActiveConnection = objCn
          .Parameters.Refresh
    
          For n = 1 to.Parameters.Count - 1 ' we want to skip RETURN_VALUE
    
            ' Add to tblReportParams
            lngRetVal = Exec_asprep_ins_tblReportParams (intReportID, Replace (objcmdparams.Parameters (n).name, "@", ""), strErrDesc)
    
            If lngRetVal <> 0 Then
              Response.Redirect "Error.asp?ErrNum=" & lngRetVal & "&ErrDesc=" & strErrDesc
              lngRetVal = 0
            End If
          Next
        End With
      End If
    
      If Err <> 0 Then
        AddParams = Err.Number
        strErrDesc = Err.description
      End If
    End Function

    Take Polystyle for a spin: Download a copy here!

  • Home Features Documentation Buy Polystyle Download  

    Click Here To Download A Free Trial!

    Copyright © Flashbulb Studios. All rights reserved.