Create a UDF
- Last Updated: February 11, 2026
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
Users who want to take the advantage of the UDF capability can create UDF functions using the following syntax:
|
The following example shows how to create a UDF and use it in a SELECT function. In this example, the UDF, which is an EXTRACT function, can be used to return a single part (year, month, day, hour, minute) of a date /time stamp of a certain event. This data could be used to compare or calculate a time period or a certain delay that might have occurred between the two events.
|
The above UDF can be called using the SELECT function as shown in the following example:
|