How to get the full name of a variable with ⎕REFS
Posted: Sun Dec 12, 2021 12:24 am
In the following example:
⎕REFS is returning 'var' and 'var2' when I am looking to get the fully qualified variable name like '#.NS.var' and '#.NS.var2'. My ultimate goal is to check if all the variables of a function are valid variable names that exist. Is there an option in ⎕REFS to get the fully qualified names with their namespaces?
Thanks in advance.
∇ FOO;local;local2
[1]
[2] local←#.NS.var
[3] local2←#.NS.var2
∇
⎕REFS 'FOO'
FOO
NS
local
local2
var
var2
⎕REFS is returning 'var' and 'var2' when I am looking to get the fully qualified variable name like '#.NS.var' and '#.NS.var2'. My ultimate goal is to check if all the variables of a function are valid variable names that exist. Is there an option in ⎕REFS to get the fully qualified names with their namespaces?
Thanks in advance.