I thought of the following method, which is a bit tedious
How to get the defined variable name, automatically generate the following code
--------------------------------------------------------------------------------------------------
Av.replacerx("[]" "┃")
Bv.replacerx("[]" "┃")
Cv.replacerx("[]" "┃")
str kv=
F
{A}={Av}
{B}={Bv}
{C}={Cv}
Macro Macro18
How to get the defined variable name, automatically generate the following code
--------------------------------------------------------------------------------------------------
Av.replacerx("[]" "┃")
Bv.replacerx("[]" "┃")
Cv.replacerx("[]" "┃")
str kv=
F
{A}={Av}
{B}={Bv}
{C}={Cv}
Macro Macro18
out
str A="1 key"
str Av=
;1 hello
;1 world
str B="2 key"
str Bv=
;2 hello
;2 world
str C="3 key"
str Cv=
;3 hello
;3 world
Av.replacerx("[]" "┃")
Bv.replacerx("[]" "┃")
Cv.replacerx("[]" "┃")
str kv=
F
;{A}={Av}
;{B}={Bv}
;{C}={Cv}
IStringMap m._create
m.AddList(kv "=")
str v=m.Get("1 key")
if(v)
,v.replacerx("┃" "[]")
,out v
else
,out "not found"