# List of dynamic numbers, deleting, managing list

**URL:** <https://community.thunkable.com/t/list-of-dynamic-numbers-deleting-managing-list/912204>\
**Category:** Questions about Thunkable X\
**Created:** [October 18, 2020, 6:33pm UTC](https://community.thunkable.com/t/list-of-dynamic-numbers-deleting-managing-list/912204 "2020-10-18T18:33:31Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![exploriverse.com](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/exploriverse.com/32/77609_2.png) [@exploriverse.com](https://community.thunkable.com/u/exploriverse.com)\
**Post date:** [October 18, 2020, 6:33pm UTC](https://community.thunkable.com/t/list-of-dynamic-numbers-deleting-managing-list/912204/1 "2020-10-18T18:33:31Z")

</div>

I am building a quiz app. User selects a level to play and a level is made up of a series of numbers. I use those numbers to know which quiz problems to load from the localdb.

I created a ‘list’ from two variables. The two variables define numbered rows in a localdb. Example: The two variables could be 6 & 10, therefore the list would look like 6,7,8,9,10, these numbers correspond to rows in my localdb.

 ![Screen Shot 2020-10-18 at 11.20.19 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/9/f92de0eb91c36f32406110716c2ce615b9cfc77e.png)

Later I delete a value from the list based on which quiz problem they just completed. Example: user completed quiz problem 7, I remove 7 from the list, the variable with the list should look like 6,8,9,10. Then next time I choose a random value from the list it will not include that value I just removed.

 ![Screen Shot 2020-10-18 at 11.18.50 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/c/3c042dada5bf52911299c2b4a9e4e91f9a2736e7.png)

My problem is the blocks don’t do that, instead # means to remove the position in the list. And I don’t know how to find the position of 7 from the list.

I’m not a programmer, so this is challenging for me. Are there better blocks I should be using? Is this approach even possible? I’m trying to make it flexible and dynamic.

Do any of the masters have a solution? @jane @drted @darren

---

<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:** [October 18, 2020, 8:36pm UTC](https://community.thunkable.com/t/list-of-dynamic-numbers-deleting-managing-list/912204/2 "2020-10-18T20:36:15Z")

</div>

You need to search for the list item containing “lesson” (the lesson #) and then remove that item from the list:

 ![Screen Shot 2020-10-18 at 1.36.02 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/c/2c458f2bfdaf83ac277dea4ccd75e46747901c14.png)

---

<div class="post-metadata">

**Author:** ![exploriverse.com](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/exploriverse.com/32/77609_2.png) [@exploriverse.com](https://community.thunkable.com/u/exploriverse.com)\
**Post date:** [October 18, 2020, 10:11pm UTC](https://community.thunkable.com/t/list-of-dynamic-numbers-deleting-managing-list/912204/3 "2020-10-18T22:11:47Z")

</div>

@tatiang Omg that fixed it woohoo! Thank you for making my weekend, you’re my hero!

Now off to troubleshoot the next issue

---

<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:** [October 18, 2020, 10:38pm UTC](https://community.thunkable.com/t/list-of-dynamic-numbers-deleting-managing-list/912204/4 "2020-10-18T22:38:56Z")

</div>

@exploriverse.com You’re welcome!

---

<div class="post-metadata">

**Author:** ![exploriverse.com](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/exploriverse.com/32/77609_2.png) [@exploriverse.com](https://community.thunkable.com/u/exploriverse.com)\
**Post date:** [October 18, 2020, 11:26pm UTC](https://community.thunkable.com/t/list-of-dynamic-numbers-deleting-managing-list/912204/5 "2020-10-18T23:26:25Z")

</div>

@tatiang Next issue i’m having is with the list block.

On my first screen I set the string of numbers with this list block, it works.

 ![Screen Shot 2020-10-18 at 4.17.52 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/6/76ca6c383fadc6e24f3da355ac30ab0ebebaac4d.png)

Then I do it again from another screen but the outcome is just 1 number, why is it just showing 1 number and not the string of numbers? The block below setting stored lesson is not working either.

 ![Screen Shot 2020-10-18 at 4.17.29 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/7/e7f5cf1fad883ff3fbc137f21aa6c16b0e154d24.png)

Is this issue again me not using list blocks correctly?

---

<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:** [October 19, 2020, 7:16am UTC](https://community.thunkable.com/t/list-of-dynamic-numbers-deleting-managing-list/912204/6 "2020-10-19T07:16:41Z")

</div>

When selecting a random item from a list, you want to follow this algorithm:

1. Choose a random number from 1 to the length of the list (in your case, you’re using Qstart and Qend for this which is fine).
2. Assign the random number to a variable (let’s call it randomItemNum).
3. Get the value of the list item at #randomItemNum.
4. Delete the list item at #randomItemNum.

I think you are skipping step #2, at least on your Quiz 01 screen.

---

<div class="post-metadata">

**Author:** ![exploriverse.com](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/exploriverse.com/32/77609_2.png) [@exploriverse.com](https://community.thunkable.com/u/exploriverse.com)\
**Post date:** [October 19, 2020, 12:37pm UTC](https://community.thunkable.com/t/list-of-dynamic-numbers-deleting-managing-list/912204/7 "2020-10-19T12:37:08Z")

</div>

I changed up how i handle the start and end of my string and just write the full string (ex. 6,7,8,910)

 ![Screen Shot 2020-10-19 at 6.38.44 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/b/8bc706d5f2125c8fb003a398eaf9978276301baf.png)  
 ![Screen Shot 2020-10-19 at 6.38.53 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/4/e47d05ddda0a0c04ba01c8a3bd0636823426aa84.png)

Lastly it seems when pulling numbers from the localdb it needs to be formatted with this block so it maintains the commas. “delimiter”

 ![Screen Shot 2020-10-19 at 6.38.24 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/a/1a2c183b947ae192be9edb7b829c0c1641797632.png)

Thanks to @tatiang @drted you’re contributions help this thunkable amateur more than you know \<3

---

<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:22pm UTC](https://community.thunkable.com/t/list-of-dynamic-numbers-deleting-managing-list/912204/8 "2024-11-08T12:22:04Z")

</div>


