Siebel VB Language Reference > Language Overview > Trapping Errors Returned by Siebel VB >

Option 1: Trap Errors Within Body of Code


The On Error statement identifies the line of code to go to in case of an error. In this case, the Resume Next parameter means that execution continues with the next line of code after the error. In this example, the line of code to handle errors is the If statement. It uses the Err statement to determine which error code is returned.

Click for full size image


 Siebel VB Language Reference
 Published: 18 June 2003