DYNAMIC-FUNCTION function
- Last Updated: November 26, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Invokes a user-defined function. The AVM evaluates the name of the function (and the procedure handle, if any) at run time.
Syntax
|
- function-name
- A CHARACTER expression that returns the name of a user-defined function. The AVM evaluates function-name at run time.
- IN proc-handle
- An expression that returns a handle to the procedure that defines the function. The AVM evaluates proc-handle at run time.
- param1, param2, ...
- Parameters of the user-defined function. You must supply names
of actual data items—actual parameter names—not CHARACTER expressions
that return parameter names.Note: ABL cannot check the mode and type of the parameters at compile time, since the AVM does not evaluate function-name until run time.
Example
The following procedure demonstrates the DYNAMIC-FUNCTION
function:
|