Static object handles
- Last Updated: May 3, 2024
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
Static objects have handles just as dynamic objects do. As soon as a statically defined object
is included in a frame's definition, it is given a handle just like a dynamic object.
You can access this handle value using the HANDLE attribute of the
static object. In this way, you can access an object’s attributes and methods using its
handle just as you can for dynamic objects, as an alternative to using the object name.
For example, the following code defines a handle variable and a static button. The code
changes the button label and enables the button by setting its
SENSITIVE attribute to YES:
|
The following figure shows the result: