Page 1 of 1

commas into lists

Posted: 09 Mar 2020 11:42
by tsolignani
Good morning everyone.

Should I insert strings with commas into an automagic list, which syntax would I use?

Thank you.

Re: commas into lists

Posted: 09 Mar 2020 18:47
by Desmanto
Do you mean add new element which contains comma ? Just add as usual

Code: Select all

list = newList("apple", "this is sentence");
addElement(list, "This, have comma");
listcomma = "{list,listformat,comma}";
When the list is used as listformat comma, Automagic will automatically double quote the element that have comma. It gets ugly though when you have double quote also inside the element.