Difference between revisions of "SET UDFPARMS"
From Recital Documentation Wiki
Yvonnemilne (Talk | contribs) |
Yvonnemilne (Talk | contribs) |
||
Line 15: | Line 15: | ||
==See Also== | ==See Also== | ||
− | DO, FUNCTION, PARAMETER, SET PROCEDURE | + | [[DO]], [[FUNCTION]], [[PARAMETER]], [[SET PROCEDURE]] |
Line 41: | Line 41: | ||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Commands]] | [[Category:Commands]] | ||
− | [[Category:Set_Commands]] | + | [[Category:Set_Commands|UDFPARMS]] |
Revision as of 16:16, 11 March 2009
Contents
SET UDFPARMS
Class
Environment
Purpose
Specify whether parameters are passed to a user-defined function by value or by reference
Syntax
SET UDFPARMS TO VALUE | REFERENCE
See Also
DO, FUNCTION, PARAMETER, SET PROCEDURE
Description
By default, parameters are passed to UDFs by value. By setting UDFPARMS to REFERENCE, parameters will be passed to the UDF by reference. Variables that are passed by reference can have their values changed in the UDF, and the new values will be available at the scope where the variables were defined.
Example
set udfparms to value count = 10 // Call a UDF that changes the value of count to 30 changecount(count) ? count 10 set udfparms to reference count = 10 // Call a UDF that changes the value of count to 30 changecount(count) ? count 30
Products
Recital Database Server, Recital Mirage Server, Recital Terminal Developer