Error Statement


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




Visual Basic 2005(c) In a Nutshell
Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
ISBN: 059610152X
EAN: 2147483647
Year: 2004
Pages: 712

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net