From VFP Help:
Code: Select all
SET UDFPARMS TO VALUE (default)
SET UDFPARMS TO REFERENCE
Code: Select all
SET UDFPARAMS
Specifies whether Visual FoxPro passes variables by Value or by Reference to parameters in procedures and user-defined functions (UDFs).
TO VALUE
--------------
Pass variables to parameters by value. When passing variables by value, the procedure or function can change the value in the variable; however, the original value of the variable in the calling program does not change. (Default)
Note
Using SET UDFPARMS TO VALUE does not affect the WITH clause in the DO command, which, by default, passes arguments to parameters by reference.
TO REFERENCE
---------------------
Pass variables to parameters by reference. When passing variables by reference, the procedure or function can change the value in the variable, which changes the original value of the variable in the calling program.