Access a data member within a class
- Last Updated: July 12, 2021
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
In the constructors, methods, or destructor of a class, you can write code to directly access the data members of the class. You access the data members by name, but you can also type the keyword this-object: in the editor. When you do so, the editor provides a drop-down list of all available data members in the class for you to choose from. This makes it easier to find the data member name that you want to use when you are working with a large class.
Here is the syntax for using a data member from within a class:
[this-object:]<data-member>
Syntax Element |
Description |
|---|---|
data-member |
The name of a data member in the class |
- THIS-OBJECT system reference in ABL Syntax Reference