09-11-2016, 08:17 AM
Supposed that string "s" contains the name of a global variable (MyTemp). I need to move in string "s" the content of the global variable. I wrote the following function to this end. I wonder whether there exists a simpler approach :
Function tempf09
Many thanks in advance.
Function tempf09
str s="MyTemp"
type RTAF2 str'arg1 str'arg2
RTAF2 r
str code=F"function RTAF2&r[]r.arg1=F''{{{s}}''"
RunTextAsFunction2(code &r)
out r.arg1
Many thanks in advance.