Salesforce

COMError (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

COMError (Magic xpa 3.x)

Retrieves information of the last error that occurred when Magic xpa interacted with a COM object.

Syntax:

COMError(info type)

Parameters:

info type – The numeric value that specifies the information to be retrieved. The numeric values are:

1 – The error description.

2 – The COM object in which the error occurred.

3 – The index number in which the error occurred.

4 – The help file that describes the error.

5 – The context number of the error help topic.

0 – The HRESULT value that represents the actual error number. The HRESULT is retrieved in hexadecimal representation.

Returns:

An Alpha string as defined by the info type parameter. Numeric values, such as an argument index, are returned as Alpha strings. A blank is returned when there is no error or when the info type parameter is set to an invalid value.

See also:

How Do I Handle an Error Triggered by a COM Object?

Reference
Attachment 
Attachment