Try OpenEdge Now
skip to main content
Programming Interfaces
External Program Interfaces : Using COM Objects in ABL : Accessing COM object properties and methods : Property and method syntax : Component handle expression
 
Component handle expression
Every method or property reference must begin with a component handle expression that returns a component handle value. This is the syntax to specify a component handle expression:

Syntax

COMhandle [:Method-Name-Reference|Property-Name-Reference]...
COMhandle
A component handle variable. (Note that the first element in a component handle expression must be a COM-HANDLE variable.)
Method-Name-Reference
Specifies a single COM object method or property that returns a component handle value. A component handle expression can chain as many method and property references as required to return the handle to a particular COM object.
Property-Name-Reference
Specifies a single COM object method or property that returns a component handle value. A component handle expression can chain as many method and property references as required to return the handle to a particular COM object.
Note: For the most efficient dispatch of multiple references to a particular COM object, assign the initial component handle expression for the COM object to a COM-HANDLE variable. Each reference to a given component handle expression incurs additional run-time overhead for each method or property referenced.