# Get# list doesn’t work well

**URL:** <https://community.thunkable.com/t/get-list-doesn-t-work-well/73697>\
**Category:** Questions about Thunkable X\
**Created:** [March 29, 2019, 3:18pm UTC](https://community.thunkable.com/t/get-list-doesn-t-work-well/73697 "2019-03-29T15:18:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lff](https://avatars.discourse-cdn.com/v4/letter/l/e495f1/32.png) [@lff](https://community.thunkable.com/u/lff)\
**Post date:** [March 29, 2019, 3:18pm UTC](https://community.thunkable.com/t/get-list-doesn-t-work-well/73697/1 "2019-03-29T15:18:54Z")

</div>

I have a list that stores numbers, which are row numbers of an airtable spreadsheet. When the user selects one entry in a list viewer showing the results rows that contains an input string, I use the index to get the #index position in my list. Sometimes this works fine, but then starts to return the next position. Later works fine, then wrong, …So I don’t know how to fix it. Any help?  
Thanks  
Lidia

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [March 29, 2019, 3:25pm UTC](https://community.thunkable.com/t/get-list-doesn-t-work-well/73697/2 "2019-03-29T15:25:32Z")

</div>

Hi Lidia,

Did you get a chance to read any of the posts I sent you earlier in the week? Did any of them help with this, no?

---

<div class="post-metadata">

**Author:** ![lff](https://avatars.discourse-cdn.com/v4/letter/l/e495f1/32.png) [@lff](https://community.thunkable.com/u/lff)\
**Post date:** [March 29, 2019, 5:11pm UTC](https://community.thunkable.com/t/get-list-doesn-t-work-well/73697/3 "2019-03-29T17:11:06Z")

</div>

Yes, I took a look to your code “Searching and filtering” with LocalDB. Your code and my code are equal, I didn’t have to change anything because I’ve already use list to store index, etc. After tracing the problem, I think that the problem is in the list. The listviewer works ok, the getcolumn also works well.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/0/c018dff85c0f2593278c0d04335262f8301d7c61.png)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/2/52389da1cf1018dcf842097757588bf61f3cafa4.png)

And the last 10 executions worked bad, and now I wanted to show you the bad execution and started to work well, but I know that in five minutes it will work bad again.  
In for example Java this happens when you forgot to initialize a variable, but here everything is initialized. So I don’t know how to fix it for ever.  
Thanks  
Lidia

---

<div class="post-metadata">

**Author:** ![Cian\_O\_Sullivan](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/cian_o_sullivan/32/34494_2.png) [@Cian\_O\_Sullivan](https://community.thunkable.com/u/Cian_O_Sullivan)\
**Post date:** [March 29, 2019, 5:38pm UTC](https://community.thunkable.com/t/get-list-doesn-t-work-well/73697/4 "2019-03-29T17:38:05Z")

</div>

I have a feeling it might be going back and forth with the screens. Try to display the results in a label on the same screen and see if the same thing happens.

---

<div class="post-metadata">

**Author:** ![lff](https://avatars.discourse-cdn.com/v4/letter/l/e495f1/32.png) [@lff](https://community.thunkable.com/u/lff)\
**Post date:** [March 29, 2019, 7:42pm UTC](https://community.thunkable.com/t/get-list-doesn-t-work-well/73697/5 "2019-03-29T19:42:34Z")

</div>

No, is not this, because I print in a label in the same screen the value of the #index of my list of indexes and the value is wrong. The last thing I did is change the the “in list insert at last”+counter by “in list set #index”+counter and now is working. I don’t know if it will continue working for ever or not. If this was the problem, it seems that there is a problem with the implementation of the lists. It seem that you use dynamic memory wrongly. I hope that the “in list set #” is implemented with an array of static memory. So, please tell developers to test lists implementations.  
Thank you for your support.  
Lidia

---

<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, 12:15pm UTC](https://community.thunkable.com/t/get-list-doesn-t-work-well/73697/6 "2024-11-08T12:15:59Z")

</div>


