STATEMENT: ON ERROR
ON ERROR RESUME NEXT
The ON ERROR statement gives you a limited amount of
error handling
control by preventing program
interruptions from runtime errors.
When an error occurs,
the line of code containing the error is
simply skipped
over and the program continues running.
Note that the error is not corrected, just ignored, and an
error
message is not displayed.
Code:
<% ON ERROR RESUME NEXT %>
If you wish to know whether an error has occurred
and of what type, can insert the following code.
Code:
<% IF ERR.NUMBER > 0 THEN %>
<% =ERR.NUMBER %>
<% ERR.CLEAR %>
Copyright 1999 by Infinite Software Solutions, Inc.
Trademark Information