Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))

Error Statement

Syntax

Error errorNumber

errorNumber (optional; Integer)

Any valid numeric error code

Description

The Error statement raises an error.

Usage at a glance

The Error statement is included only for backward compatibility; instead, if you're using unstructured error handling, you should use the Err.Raise method and the Err object. You can also use structured exception handling with the try...Catch...Finally construct.

See Also

Err.Raise Method, Try...Catch...Finally Statement

Категории