Functions Passed as Variables Example

Functions can be passed as variables. The following example builds on the Generic Function Example:

ASSIGN/NEWFUNC=MYFUNC
Sets the variable NEWFUNC to have the same function that MYFUNC has.

ASSIGN/V3=NEWFUNC(12,2,3)
Assigns V3 to have the value 43 from the evaluated expressions within the function (36 + 4 + 3).