Siebel Object Interfaces Reference > Interfaces Reference > Application Methods >

GetLastErrCode Method


The GetLastErrCode method returns the last error execution status.

Syntax

Application.GetLastErrCode

Argument
Description

Not applicable

 

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 Web Client Automation Server, Web Client Automation Server

Example

The following example is for COM Data Control. SiebelApplication is an Application instance.

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

Related Topic

GetLastErrText Method

Siebel Object Interfaces Reference Copyright © 2008, Oracle. All rights reserved.