You created a construct, but did not properly terminate it. The following table lists the VBScript constructs that must end with an End statement.
Construct | Terminating Statement |
---|---|
Sub | End Sub |
Function | End Function |
If | End If |
Class | End Class |
With | End With |
Select | End Select |
To correct this error
Terminate a Sub procedure with an associated End Sub statement.
Terminate a Function procedure with an associated End Function statement.
Terminate an If statement with an associated End If statement.
Terminate a Class statement with an associated End Class statement.
Terminate a With statement with an associated End With statement.
Terminate a Select Statement with an associated End Select statement.
See Also