Fidgits
July 10, 2003, 10:39 am
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
July 10, 2003, 10:43 am
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[/code]
HTML is turned off for these forums, as the potential scope for damage far outweighs the advantages.