# List in message box

**URL:** <https://forum.inductiveautomation.com/t/list-in-message-box/38776>\
**Category:** Ignition\
**Tags:** ignition80, vision, scripting\
**Created:** [September 17, 2020, 1:11am UTC](https://forum.inductiveautomation.com/t/list-in-message-box/38776 "2020-09-17T01:11:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [September 17, 2020, 1:11am UTC](https://forum.inductiveautomation.com/t/list-in-message-box/38776/1 "2020-09-17T01:11:54Z")

</div>

Using Vision, I have a list and was hoping to use this in a message box, each item in the list being a new line in the message box. For some reason, I’m not able to figure this one out. Can anyone help?

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [September 17, 2020, 1:22am UTC](https://forum.inductiveautomation.com/t/list-in-message-box/38776/2 "2020-09-17T01:22:47Z")

</div>

This works, but I don’t consider it very good.

```auto
StringBuilder = ""
for item in List:
	StringBuilder = "<html>" + item + "<br>" + StringBuilder
system.gui.messageBox(StringBuilder,"Error")

```

Would like to hear other options if anyone is willing. Thanks.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [September 17, 2020, 1:44am UTC](https://forum.inductiveautomation.com/t/list-in-message-box/38776/3 "2020-09-17T01:44:43Z")

</div>

`system.gui.messageBox("<html>" + "<br>".join(listOfItems)`

Not very good because of the code, or because of how it ends up looking?

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [September 17, 2020, 1:51am UTC](https://forum.inductiveautomation.com/t/list-in-message-box/38776/4 "2020-09-17T01:51:30Z")

</div>

The code, I thought it was a little wacky. Maybe it’s just me.

Thanks, I thought I tried Join, I must have fat fingered something.
