If Not (rs Is Nothing) Then
If rs.State = 1 Then rs.Close
Set rs = Nothing
End If
If Not (conn Is Nothing) Then
If conn.State = 1 Then conn.Close
Set conn = Nothing
End If
Option Explicit is present at the top of all VBScript and VB6 modules.ADODB.Command with CreateParameter.On Error Resume Next without an immediate check. Log every handled error to the flat log file documented in .devfoundry/references/environments.md (“Legacy Error Log” section) — one line per error with timestamp, source module/function, Err.Number, and Err.Description:On Error Resume Next
' Risky call
If Err.Number <> 0 Then
' Append a line to the flat error log path from environments.md, then:
Err.Clear
End If
On Error GoTo 0
.asp/.vbs modules or COM components (VB6 classes), data access isolated from presentation, and .asp page bodies limited to rendering. Do not introduce a third-party MVC framework into a legacy runtime unless the spec calls for it..vbs, .bas, .cls) validate their input parameters at entry and set Err.Raise or return an explicit error/status rather than proceeding on unchecked assumptions; document expected pre/postconditions in a comment above the function signature.Powered by TurnKey Linux.