commas into lists

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
tsolignani
Posts: 187
Joined: 12 Jan 2019 11:53
Location: Vignola, Mo, Italy
Contact:

commas into lists

Post by tsolignani » 09 Mar 2020 11:42

Good morning everyone.

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

Thank you.

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: commas into lists

Post by Desmanto » 09 Mar 2020 18:47

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.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Post Reply