# Can I store lists in variables?

**URL:** <https://community.thunkable.com/t/can-i-store-lists-in-variables/1045015>\
**Category:** Questions about Thunkable X\
**Tags:** beginner, variables, list, listviewer\
**Created:** [January 11, 2021, 8:02pm UTC](https://community.thunkable.com/t/can-i-store-lists-in-variables/1045015 "2021-01-11T20:02:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![iankoqr429](https://avatars.discourse-cdn.com/v4/letter/i/87869e/32.png) [@iankoqr429](https://community.thunkable.com/u/iankoqr429)\
**Post date:** [January 11, 2021, 8:02pm UTC](https://community.thunkable.com/t/can-i-store-lists-in-variables/1045015/1 "2021-01-11T20:02:40Z")

</div>

When I set my List\_Viewer text items directly to a list from a table, or a regular list, it works like expected. But when I try to set my List\_Viewer text items to a variable that stores these things (in the picture below), it doesn’t work. I just end up with an empty screen.

 ![Screen Shot 2021-01-11 at 12.49.58 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/f/3f7caab103d6d83172168566e1b2072ab536ad04.png)

My goal is to modify a list from a table before I give it to the List\_Viewer.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [January 11, 2021, 9:21pm UTC](https://community.thunkable.com/t/can-i-store-lists-in-variables/1045015/2 "2021-01-11T21:21:06Z")

</div>

That should definitely work. Are you setting the value of either of those variables to something other than a list elsewhere in your project?

Any chance you can share a link to your project?

---

<div class="post-metadata">

**Author:** ![iankoqr429](https://avatars.discourse-cdn.com/v4/letter/i/87869e/32.png) [@iankoqr429](https://community.thunkable.com/u/iankoqr429)\
**Post date:** [January 11, 2021, 9:28pm UTC](https://community.thunkable.com/t/can-i-store-lists-in-variables/1045015/3 "2021-01-11T21:28:26Z")

</div>

I figure it’s some sort of bug on my end then. The variables aren’t present anywhere else. I did figure out this ‘workaround’ which does work for me though, and I actually like it better. Using a more functional approach, instead of a global variable.

 ![Screen Shot 2021-01-11 at 2.24.29 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/1/f1c829d6ab9b953fde18ec8bc82848d429f53478.png)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [January 12, 2021, 1:40am UTC](https://community.thunkable.com/t/can-i-store-lists-in-variables/1045015/4 "2021-01-12T01:40:24Z")

</div>

Try this demo:

[https://x.thunkable.com/copy/6b3b6f7acb1647f9abe96a4bad72ff9f](https://x.thunkable.com/copy/6b3b6f7acb1647f9abe96a4bad72ff9f)

It works for me. You used an Any Component block instead of the standard _List Viewer set text items_ block so I did the same but I left the standard block below it in case you want to try that.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/3/c3a7ab76369cf06637bf6a94381cb201b8011b30.png)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/3/d30edc1ce5bf957e9c873e157ed837ef88bdc7df.png)

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:30pm UTC](https://community.thunkable.com/t/can-i-store-lists-in-variables/1045015/5 "2024-11-08T13:30:52Z")

</div>


