Using the Body of the Code to Handle Siebel VB Errors

To handle errors in the body of code, you place the code that handles the error immediately before the line of code that could cause an error.

The following image includes an example that handles errors in the body of the code.

Example That Handles Errors In the Body of the Code. This image is described in surrounding text.

Explanation of Callouts

The example that handles errors in the body of the code includes the following items:

  1. The On Error statement identifies the line of code to run if an error occurs.

  2. The If statement handles the error. It uses the Err statement to identify the error that Siebel VB returns.

  3. The Resume Next argument instructs Siebel VB to proceed to the next line of code after it handles the error.