Try OpenEdge Now
skip to main content
Programming Interfaces
External Program Interfaces : Using COM Objects in ABL : Accessing COM object properties and methods : Restrictions on property and method references : Parentheses on method calls
 
Parentheses on method calls
In general, you must specify all method references with parentheses. Although some COM objects accept a method call referenced without parentheses, ABL is not aware that such a reference is a method call. Without parentheses, the compiler interprets the reference as a property rather than as a method. This can cause unpredictable results for the method call.