Share via


Passing Parameters by Value

You can pass parameters by value every time or only in a specific instance.

To pass parameters by value

  • Use the TO VALUE clause of the SET UDFPARMS command before calling the UDF:

    -or-

  • Use parentheses to pass a variable or array by value, as in the following example.

    ? 'UDF value: ' + STR(plusone((nX)))
    

See Also

Passing Parameters by Reference | SET UDFPARMS Command | User-Defined Functions | Data Manipulation