GetLastErrCode Method for an Application

The GetLastErrCode method returns the error code for the error that Siebel CRM logged most recently. This code is a short integer. 0 (zero) indicates no error.

Format

Application.GetLastErrCode

No arguments are available.

Usage for the GetLastErrCode Method

After you run an object interface method, you can call the GetLastErrCode method to determine if Siebel CRM returned an error from the previous operation. You can use the GetLastErrText method to return the text of the error message. Each call to a method resets the run status. For more information, see GetLastErrText Method for an Application.

Used With

COM Data Control, Mobile Web Client Automation Server

Examples

The following example is for COM Data Control:

errcode = SiebelApplication.GetLastErrCode
If errcode <> 0 Then
   ErrText = SiebelApplication.GetLastErrText
   MsgBox ErrText
   Exit Sub
End If