Bookshelf Home | Contents | Index | Search | PDF | ![]() ![]() ![]() ![]() |
Siebel VB Language Reference > Siebel VB Language Reference >
Err Function
This standard VB function returns the run-time error code for the last error trapped.
Syntax
Err
Returns
The run-time error code for the last standard VB error trapped.
Usage
If you use a Resume or On Error statement after Erl, the return value for Err is reset to 0. To maintain the value of the line number returned by Erl, assign it to a variable.
The value of the Err function can be set directly through the Err statement, and indirectly through the Error statement.
The standard VB trappable errors are listed in Trappable Errors
CAUTION: You cannot view Siebel VB errors with this function. Instead, use the appropriate method for the Siebel interface you are using (COM, ActiveX, or CORBA). Error trapping methods and examples for each interface are documented in Siebel Object Interfaces Reference.
Example
For examples, read Erl Function and Error Function.
See Also
Erl Function
Err Statement
Error Function
Error Statement
On Error Statement
Resume Statement
Trappable Errors
Bookshelf Home | Contents | Index | Search | PDF | ![]() ![]() ![]() ![]() |
Siebel VB Language Reference Published: 18 June 2003 |