Access class methods from within the class
- Last Updated: May 24, 2019
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
When you define a method, it can be defined either to return a value or not to
return a value (using void).
If a method returns a value, you can use it like a function call in your code.
That is, it can be used in any valid ABL statement that expects that type of value. Here
is an example of using the GetName() method, which returns a
character value:
EmpInfo = GetName() +
" " + Address +
" " + PostalCode +
" " + "Job Title: " + JobTitle +
" " + "Vacation Hours: " + string(VacationHours).
If a method does not return a value, you must call it in a separate ABL statement. Then you typically use any returned output parameters in your code.
GetValue(3,result).message result.
In either case, you specify the name of the method followed by the parameter list.