Use handle-based object events in classes
- Last Updated: October 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
ABL supports events with several different constructs. Classes support widget
and low-level ABL events using the ON statement, and they
support ProDataSet, query, buffer, and socket object callbacks using the SET-CALLBACK( ) method. Classes also allow you to publish named
events associated with external procedures using the PUBLISH
statement’s FROM publisher-handle option and they allow you to manage subscriptions of internal
procedures as event handlers for named events using the SUBSCRIBE and UNSUBSCRIBE statements’ PROCEDURE subscriber-handle
option. However, you cannot subscribe class methods to named events as event handlers or
otherwise provide behavior to a class using named events. Classes support class events as
members that provide a similar form of event behavior for a class. For more information, see
Define events within a class.