Inspection Details
ObsoleteErrorSyntax
- Summary
- Locates legacy 'Error' statements.
- Reasoning
- The legacy syntax is obsolete; prefer 'Err.Raise' instead.
- The following code example(s) would trigger this inspection:
-
Public Sub DoSomething()
Error 5
End Sub
- The following code example(s) would not trigger this inspection:
-
Public Sub DoSomething()
Err.Raise 5
End Sub
Back to List