Try OpenEdge Now
skip to main content
Programming Interfaces
External Program Interfaces : ActiveX Automation Support : Automation event support
 

Automation event support

ABL supports event notification for ActiveX Automation objects with a built-in method that enables event notification for that specific component handle.
Note: This method is invalid when the component handle represents a control, since events work for controls automatically.
The following syntax describes the ENABLE-EVENTS method for ActiveX Automation objects:

Syntax

ENABLE-EVENTS ( event-proc-prefix )
event-proc-prefix
A CHARACTER expression representing a string prepended to every event received. The resulting string is the name of the internal procedure ABL runs in response to an event notification. During an event notification, all running procedures and all persistent procedures are searched to find a procedure with the name matching event-proc-prefix.eventname (for example, ExcelWB.SelectionChanged).
For more information on managing Automation objects, see the sections on COM object management in UsingCOM Objects in ABL.
For information on ActiveX control event management, see ActiveXControl Support.