Publish class events
- Last Updated: August 17, 2021
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
In your publisher class you write code to identify when a condition has
occurred. Then, you call the publish() method to
publish the event.
Here is the syntax to publish a class event:
Event-Name:publish (parameter, [parameter…])no-error.
|
Syntax Element |
Description |
|
no-error |
Specifies how you want to handle errors raised from publishing the event. Note that if there are multiple subscribers to an event and an error is raised, any unexecuted event handlers will not execute. |
For more information, see Publish class events and Comparison with procedure-based programming PUBLISH and SUBSCRIBE"Publish class events" and "Comparison with procedure-based programming PUBLISH and SUBSCRIBE" in the Develop Object Oriented ABL Applications guide.