Salesforce

COMHandleGet (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

COMHandleGet (Magic xpa 4.x)

Retrieves the handle of a loaded COM object. This handle can be stored as a numeric value.

Syntax:

COMHandleGet(object)

Parameters:

object – A BLOB value representing a COM object field.

Returns:

A positive numeric value representing the object's handle. A negative number is returned when the function fails.

The negative numbers that the function can return are:

-1 – The attribute is not an OLE variable.

-3 – The object is not loaded by the defined variable.

Note:

Handling objects using the COMHandleGet and COMHandleSet functions should be done with caution. Accidentally assigning wrong handles to wrong objects may result in unexpected behavior.

Reference
Attachment 
Attachment