# How to create a memory tag array for transferring data from scripting to the screen

**URL:** <https://forum.inductiveautomation.com/t/how-to-create-a-memory-tag-array-for-transferring-data-from-scripting-to-the-screen/100378>\
**Category:** General Discussion\
**Created:** [January 2, 2025, 1:01pm UTC](https://forum.inductiveautomation.com/t/how-to-create-a-memory-tag-array-for-transferring-data-from-scripting-to-the-screen/100378 "2025-01-02T13:01:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert\_Reed](https://avatars.discourse-cdn.com/v4/letter/r/43a26b/32.png) [@Robert\_Reed](https://forum.inductiveautomation.com/u/Robert_Reed)\
**Post date:** [January 2, 2025, 1:01pm UTC](https://forum.inductiveautomation.com/t/how-to-create-a-memory-tag-array-for-transferring-data-from-scripting-to-the-screen/100378/1 "2025-01-02T13:01:15Z")

</div>

I want to store string data in a list of tags and an array of tags would be convenient. The data I want to store is not related to a PLC value, it is debug data generated within a script that I want to display on a screen.

So I created an memory array tag named TestArrayTag with data type of string array. While creating the string array tag I did not see any field to put in the array length I desire.

After creating the tag it's value was listed as Array[1]  
If I copy the tag path it comes in as [default]TestArrayTag.

Can I create a array of tags that I can write to, one at at time, in scripting and display on the screen?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 2, 2025, 1:24pm UTC](https://forum.inductiveautomation.com/t/how-to-create-a-memory-tag-array-for-transferring-data-from-scripting-to-the-screen/100378/2 "2025-01-02T13:24:04Z")

</div>

Array tags take the length of the array that is written to them. Write the whole array every time.

(For display, you probably should be using a multiline single string, though, with a text area.)
