Help - Search - Members - Calendar
Full Version: Code Tag
Lexus Owners Club > General Club Forums > Add a suggestion
Fidgits
Hi, I thought the [CODE] tag when posting was to allow HTML code to be placed into a post.

However, after trying this, I discovered it didn't.. so what does this tag do?

Thanks

Ian.
Matthew_McNally
The code tag normally formats the text differently.

It is used to post "code" snippets - of any language, on programming / technical forums.

So - for example I could use it to post this ActiveX script I have lying around - on an ActiveX site

CODE
Option Explicit

Function Main()

    Main = DTSTaskExecResult_Success

    Dim oPkg, oStep
    Dim sServer, sUID, sPWD, iSecurity , sPkgPWD, sPkgName, sErrMsg
    Set oPkg = CreateObject("DTS.Package")

    ' Assign parameters
    sServer = "LDA-PMSDB"
    sUID = ""
    sPWD = ""
    iSecurity = DTSSQLStgFlag_UseTrustedConnection
    sPkgPWD = ""
    sPkgName = "Create lda_transactions"

    ' Load Child Package
    oPkg.LoadFromSQLServer sServer, sUID, sPWD, iSecurity , sPkgPWD, "", "", sPkgName
    
    oPkg.Execute

    For Each oStep In oPkg.Steps
 If oStep.ExecutionResult = DTSStepExecResult_Failure Then
     Main = DTSTaskExecResult_Failure
 End If
    Next

    oPkg.Uninitialize
    Set oStep = Nothing
    Set oPkg = Nothing

End Function


HTML is turned off for these forums, as the potential scope for damage far outweighs the advantages.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.