In a case like this, how can you know if the parameter was passed in by value or reference?
I've asked Bing COPILOT, and ChatGPT, and they both say using TYPE() or VARTYPE() will tell me, but that's not correct ... unless I'm missing something.
--
Rick C. Hodgin
Code:
SET UDFPARAMS TO Value
lcVar = "Hi, mom!"
my_function(lcVar, @lcVar)
FUNCTION my_function
LPARAMETERS tcP1, tcP2
* How to determine if tcP1 was passed by value or reference?
* How to determine if tcP2 was passed by value or reference?
I've asked Bing COPILOT, and ChatGPT, and they both say using TYPE() or VARTYPE() will tell me, but that's not correct ... unless I'm missing something.
--
Rick C. Hodgin