# Application that requires many variables

**URL:** <https://community.thunkable.com/t/application-that-requires-many-variables/1653188>\
**Category:** Questions about Thunkable X\
**Created:** [December 13, 2021, 9:10am UTC](https://community.thunkable.com/t/application-that-requires-many-variables/1653188 "2021-12-13T09:10:18Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![mauro.drghk](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@mauro.drghk](https://community.thunkable.com/u/mauro.drghk)\
**Post date:** [December 13, 2021, 9:10am UTC](https://community.thunkable.com/t/application-that-requires-many-variables/1653188/1 "2021-12-13T09:10:18Z")

</div>

Hello, I’m creating an application that requires many variables (more than 100,000 variables). For example Stored Variable 1, Stored Variable 2, up to more than 100000). Is there a quick way to create all these variables? The only way I know is to duplicate a variable and rename it but it takes too long. Thank you.

---

<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:** [December 13, 2021, 9:22am UTC](https://community.thunkable.com/t/application-that-requires-many-variables/1653188/2 "2021-12-13T09:22:11Z")

</div>

If you’re creating 100,000 variables, you’re doing something wrong.

Please take a step back and explain more about your project.

There **has to** be an easier way.

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [December 13, 2021, 10:14am UTC](https://community.thunkable.com/t/application-that-requires-many-variables/1653188/3 "2021-12-13T10:14:44Z")

</div>

You are asking for a table of minimum two columns  
Variable Name and Variable Value  
You are welcome to add 100,000 rows in the table

---

<div class="post-metadata">

**Author:** ![mauro.drghk](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@mauro.drghk](https://community.thunkable.com/u/mauro.drghk)\
**Post date:** [December 13, 2021, 11:46am UTC](https://community.thunkable.com/t/application-that-requires-many-variables/1653188/4 "2021-12-13T11:46:27Z")

</div>

The application expects to store different data through variables (Stored variables). To understand you can find my project on the public gallery. Filter by Username “mauro.drghk”. The name of the project is “Farmaci New”. Thank you.

---

<div class="post-metadata">

**Author:** ![mauro.drghk](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@mauro.drghk](https://community.thunkable.com/u/mauro.drghk)\
**Post date:** [December 13, 2021, 12:56pm UTC](https://community.thunkable.com/t/application-that-requires-many-variables/1653188/5 "2021-12-13T12:56:03Z")

</div>

Below I have provided a screenshot of the variables I made (three different variables 1 to 24). I would need 20,000 variables here.

 ![Schermata 2021-12-13 alle 13.47.54](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/a/3ab48de36a148ec8c0844cd7f702461150dda7c5.png)

Below I have provided a screenshot of the code where I use these variables

 ![Schermata 2021-12-13 alle 13.48.22](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/4/f45b3f10d9b21b045c49b7fd0dbd11fd610b62c6.png)

Thank you.

---

<div class="post-metadata">

**Author:** ![emregoker](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/emregoker/32/90431_2.png) [@emregoker](https://community.thunkable.com/u/emregoker)\
**Post date:** [December 13, 2021, 1:14pm UTC](https://community.thunkable.com/t/application-that-requires-many-variables/1653188/7 "2021-12-13T13:14:20Z")

</div>

At least you can do that.  
in all three  
Lightens some work  
Of course, not every time the screen is turned on.  
You should use it when necessary.

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

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [December 13, 2021, 1:24pm UTC](https://community.thunkable.com/t/application-that-requires-many-variables/1653188/8 "2021-12-13T13:24:46Z")

</div>

This is exactly what I was saying to use a table. You need a table called `Farmacia List` or any name you see it fit  
In this table you need at least 3 columns

- Farmacia Name
- Farmacia Latitude
- Farmacial Longitude

Once you have this table then fill it with the required information easily.

---

<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:** [December 13, 2021, 3:54pm UTC](https://community.thunkable.com/t/application-that-requires-many-variables/1653188/9 "2021-12-13T15:54:21Z")

</div>

A good rule of thumb for programming is… if you ever think to yourself, “I need to make 500 \_\_\_\_\_\_,” ask for help because there is a better way to set things up. You should never need 50+ screens or 500+ variables or 5,000+ blocks.

@muneer’s advice is spot on… a table ([local data source](https://docs.thunkable.com/data-sources)) is a good replacement for needing so many variables.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [March 13, 2022, 3:54pm UTC](https://community.thunkable.com/t/application-that-requires-many-variables/1653188/10 "2022-03-13T15:54:32Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
