ON statement
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
Class definition files can define static visual handle-based objects
(widgets) as PRIVATE data members. These built-in
widgets expose a well-defined set of events that an application
can respond to, by using the ON statement. The ON statement
is supported in the main block of a class definition file. As noted
previously, the main block cannot contain executable code. Therefore
a class definition file cannot specify an ON statement
within executable conditional logic, nor can it contain a WAIT-FOR statement
in the main block. However, the main block can contain ON statements
that respond to a specific event that occurs on a static visual
object.
The following contrived code demonstrates this capability:
|