Bookshelf Home | Contents | Index | Search | PDF |
Siebel Object Interfaces Reference > Interfaces Reference > Application Methods >
GetLastErrCode
The GetLastErrCode method returns the last error execution status.
Syntax
Application.GetLastErrCode
Returns
A short integer containing the last error execution status: 0 indicates no error.
Usage
After execution of a method, the GetLastErrCode can be invoked to check if any error was returned from the previous operation. GetLastErrText method can be invoked to retrieve the text of the error message. Each method invocation resets the execution status.
Used With
COM Data Control, Mobile/Dedicated Web Client Automation Server, Web Client Automation Server
Example
Here is a COM Data Control example:
errcode = SiebelApplication.GetLastErrCode
If errcode <> 0 Then
ErrText = SiebelApplication.GetLastErrText
TheApplication().RaiseErrorText(ErrText);
Exit Sub
End IfSee Also
Bookshelf Home | Contents | Index | Search | PDF |
Siebel Object Interfaces Reference Published: 18 June 2003 |