Method reference
- Last Updated: October 20, 2022
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
This is the syntax for a COM object method reference:
Syntax
|
- NO-RETURN-VALUE
-
Required for some methods that do not have a return value.
NO-RETURN-VALUEprevents ABL from expecting a possible return value. This option is appropriate only if the method does not have a return value. Whether a method call requires this option depends on the COM object. Some COM objects require that the caller knows there is no return value. In this case, you must specify the option. Many more robust COM objects do not require this option.If the method requires
NO-RETURN-VALUEand you don't specify it, the COM object generally returns an error. For example, Word for Windows 95 Version 7.0 returns an error similar to "Non-function called as function."Note: If the method has a return value, you must not invoke it in a statement with theNO-RETURN-VALUEoption. In this case, ignore the return value without specifying this option. - COMhdl-expression
-
An expression that returns a component handle to the COM object that owns the method specified by Method-Name-Reference.
- Method-Name-Reference
- Specifies a single COM object method that might return a value.