Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IStringMap multi-line string of key-values
#4
I want to output the original multi-line string
For example

str Av=
 1 hello
 1 world

In the following way, there will be an escape problem, e.g:

str Av=
 1 hello"
 1 world"

The #2 method is stable


Macro Macro20
Code:
Copy      Help
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

str kv=
F
;{A},"{Av}"
;{B},"{Bv}"
;{C},"{Cv}"

IStringMap m._create
m.AddList(kv "csv")
str v=m.Get("1 key")
if(v)
,out v
else
,out "not found"


Messages In This Thread
RE: IStringMap multi-line string of key-values - by Davider - 11-08-2022, 03:33 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)