Hello all
I have a problem here. I am not sure how to pass the variable *v\s to a second call. I know that when I need to pass a variable, I should use @v.....
What should I change in the program so the final result is tvar\s="change #1 and change #2" ?
Code:
; This is how to use ByRef with string variables, which are in fact pointers
Procedure change2(*v.string)
*v\s+" and change #2"
Debug *v\s
EndProcedure
Procedure change1(*v.string)
*v\s="change #1"
Debug *v\s
change2(@v); this is my problem <<<<<<<<<<
EndProcedure
Define.string tvar ; or Define tvar.string
tvar\s="initial-value"
Debug "before call: "+tvar\s
Debug "================================"
change1(@tvar)
Debug "================================"
Debug "after call: "+tvar\s
Thanks in advance!