Error Handling in Descriptive Programming

On error Statements

Following are error statements :

1. On Error Resume Next
2. On Error Go to 0
3. err.number
4. err.description

On Error Resume Next:

On Error Resume Next statement enables the Error handling in the code.If there is error in the code "On error Resume Next" ignores it and continue with next line of code.

On Error Go to 0:

On error got to 0 statement disables error handling we have previiously enabled it by using On Error resume Next.

err.number and err.description:

Provides the error number and the description of the error



If Err.Number>0: Through this statement we can handle skipped errors in results.

Comments

Popular posts from this blog

ExecuteFile Method vs LoadFunctionLibrary Method

Types In Descriptive Programming

Basic information about MAVEN