Try OpenEdge Now
skip to main content
ABL Reference
Handle Attributes and Methods Reference : Method call
 

Method call

The following syntax describes either a basic assignment (=) statement for invoking a COM object method that returns a value or the basic statement for invoking a COM object method directly that ignores any returned value:

Syntax

[ { field | COMProperty } = | NO-RETURN-VALUE ]
  Com-Handle-Var :COMMethod [ NO-ERROR ]
A field is any ABL variable, database field, class-based data member or property, or handle attribute of a compatible data type. COMProperty is a COM object property access (see COMProperty). NO-RETURN-VALUE indicates that you are invoking the COM object method directly, as a statement, without returning its value. Com-Handle-Var is any COM-HANDLE variable set to the handle of an instantiated COM object. COMMethod is a COM object method access (see COMMethod section). NO-ERROR allows the application to handle any ABL ERROR conditions raised by the statement.
Note: You can invoke both a property read and a method as part of an expression within another statement (such as in a DISPLAY statement or the right side of an assignment (=) statement). You can also directly invoke both property reads and methods as statements in themselves. However, direct invocation is meaningful only for methods.