Partager via


How to: Pass Data to Parameters by Reference

You can pass data to parameters by reference throughout a program or at specific locations.

To pass parameters by reference throughout a program

  • Precede code where you want to pass data to parameters by reference with the following line of code:

    SET UDFPARMS TO REFERENCE
    

For more information, see SET UDFPARMS Command.

To pass parameters by reference at specific locations

  • Preface the variable or array name with an at sign (@) as shown in the following example:

    myFunc(@var1, var2)
    

See Also

Tasks

How to: Pass Data to Parameters by Value

Concepts

Passing Data to Parameters