# Function list - bug

**URL:** <https://community.thunkable.com/t/function-list-bug/141119>\
**Category:** Questions about Thunkable X\
**Created:** [July 12, 2019, 6:42pm UTC](https://community.thunkable.com/t/function-list-bug/141119 "2019-07-12T18:42:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Balanced\_Kitchen](https://avatars.discourse-cdn.com/v4/letter/b/839c29/32.png) [@Balanced\_Kitchen](https://community.thunkable.com/u/Balanced_Kitchen)\
**Post date:** [July 12, 2019, 6:42pm UTC](https://community.thunkable.com/t/function-list-bug/141119/1 "2019-07-12T18:42:55Z")

</div>

when adding or removing a component in the list - BUG  
[here’s how to test:](https://x.thunkable.com/copy/c5177c0558012199d473a674c7741366)

Maybe I`m wrong! If so, I will be glad to help me in my ignorance!

---

<div class="post-metadata">

**Author:** ![CBVG](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/cbvg/32/32401_2.png) [@CBVG](https://community.thunkable.com/u/CBVG)\
**Post date:** [July 12, 2019, 7:03pm UTC](https://community.thunkable.com/t/function-list-bug/141119/2 "2019-07-12T19:03:04Z")

</div>

I do not understand you question.

You want to add or remove what component from what list?

---

<div class="post-metadata">

**Author:** ![Balanced\_Kitchen](https://avatars.discourse-cdn.com/v4/letter/b/839c29/32.png) [@Balanced\_Kitchen](https://community.thunkable.com/u/Balanced_Kitchen)\
**Post date:** [July 12, 2019, 7:16pm UTC](https://community.thunkable.com/t/function-list-bug/141119/3 "2019-07-12T19:16:58Z")

</div>

I create a list. Then I change it and function crashed.  
In an app, the created list is from 1 to 20. Add to the list 21 and see the result

---

<div class="post-metadata">

**Author:** ![CBVG](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/cbvg/32/32401_2.png) [@CBVG](https://community.thunkable.com/u/CBVG)\
**Post date:** [July 12, 2019, 9:20pm UTC](https://community.thunkable.com/t/function-list-bug/141119/4 "2019-07-12T21:20:31Z")

</div>

(By the way, and for the record, in your screen2, you are making a list out of a sequence of character 20 times only to pick one. Why not make the list once, and then save that list in a local variable so that it does not get needlessly reprocessed 20 times to do the same thing?)

What do you mean “add to the list 21”? What list?  
Do you mean adding “, 21” at the end of the string “\_items”, or add a “Label22” which you try to set to the 21st entry _that does not exist_ of “\_items”?

Because it this is what you did (add another Label in screen2 and try to get a non existing 21st entry of a list that only has 20 entries to be assigned to it) then it WILL crash.

---

<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:12pm UTC](https://community.thunkable.com/t/function-list-bug/141119/5 "2024-11-08T12:12:18Z")

</div>


