1.

What Is The Purpose Of On Error Resume Next Statement?

Answer»

The On Error RESUME Next statement provides you some degree of error handling by preventing program interruptions from runtime errors.

When an error occurs, by using this statement, the line of code CONTAINING the error is simply skipped over and the program continues.

On Error Resume Next statement does not correct an error, just ignore it, without EVEN displaying the error message.

The Statement essentially has two WAYS it is used. First to TURN off the script engine error checking:

On Error Resume Next

The second is to turn it on, thereby allowing the script engine to stop execution of a script when an error is encountered. Like so:

On Error Goto 0

The On Error Resume Next statement provides you some degree of error handling by preventing program interruptions from runtime errors.

When an error occurs, by using this statement, the line of code containing the error is simply skipped over and the program continues.

On Error Resume Next statement does not correct an error, just ignore it, without even displaying the error message.

The Statement essentially has two ways it is used. First to turn off the script engine error checking:

On Error Resume Next

The second is to turn it on, thereby allowing the script engine to stop execution of a script when an error is encountered. Like so:

On Error Goto 0



Discussion

No Comment Found