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:
Copy CodeSET 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:
Copy CodemyFunc(@var1, var2)
Microsoft Visual FoxPro 9 SP2 Help file, VFPX Edition v1.08