Page 1 of 1

Escaping comma seperated values?

Posted: 14 Aug 2019 01:46
by Bluscre
The docs for Input Lists state "A comma seperated list of values..." but does not say how one would escape a comma in such a value. I tried \, but the backslash was just printed on the screen.

Re: Escaping comma seperated values?

Posted: 14 Aug 2019 12:41
by mattd_nf
Put quotes around it like:

one,two,"three,",four

Re: Escaping comma seperated values?

Posted: 14 Aug 2019 21:25
by Bluscre
Thanks, would be nice if this was stated in the docs ^^

Re: Escaping comma seperated values?

Posted: 17 Aug 2019 16:40
by Desmanto
I usually just put the element into a list first, the use listformat comma. The element inside will always be escaped properly.

Code: Select all

a = newList("hello", ",world", "good");
b = "{a,listformat,comma}";
just use {a,listformat,comma} in the input dialog list or any input field that require comma delimited element.