Passing parameters by reference
Posted: Tue Feb 01, 2022 12:27 am
This works in VO
But when I try in X# I get the following error:
nor does it allow the "REF" keyword
??
Thanks in advance for any help
Code: Select all
LOCAL cParam AS STRING
cParam := " "
Joe( @cParam )
?cparam // expecting it to be "Hello"
FUNCTION Joe( cString AS USUAL ) AS VOID STRICT
cString := "Hello"
RETURN
Code: Select all
error XS9109: Argument 1 may not be passed with the '@' prefix
??
Thanks in advance for any help