# Global procedures (or variables)

**URL:** <https://community.thunkable.com/t/global-procedures-or-variables/37581>\
**Category:** Questions about Thunkable X\
**Tags:** variables\
**Created:** [July 25, 2018, 5:18pm UTC](https://community.thunkable.com/t/global-procedures-or-variables/37581 "2018-07-25T17:18:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Graham\_Charles](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/graham_charles/32/19373_2.png) [@Graham\_Charles](https://community.thunkable.com/u/Graham_Charles)\
**Post date:** [July 25, 2018, 5:18pm UTC](https://community.thunkable.com/t/global-procedures-or-variables/37581/1 "2018-07-25T17:18:46Z")

</div>

Is there no way (or plans for a way?) to create certain procedures globally? There are global components (the databases, for example), and I have code to extract a certain set of rows from the database that will get used on several screens. But as far as I can tell, I can’t put that code into a shared procedure? Or, failing that, a global variable?

---

<div class="post-metadata">

**Author:** ![paulmw](https://avatars.discourse-cdn.com/v4/letter/p/22d042/32.png) [@paulmw](https://community.thunkable.com/u/paulmw)\
**Post date:** [July 25, 2018, 5:53pm UTC](https://community.thunkable.com/t/global-procedures-or-variables/37581/2 "2018-07-25T17:53:55Z")

</div>

You can use the local storage component as a global variable across your application. Longer term, we are looking at making variables global across the app (instead of per screen) in the future.

We don’t have plans for global procedures yet - sorry for the repetitive code.

---

<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:01pm UTC](https://community.thunkable.com/t/global-procedures-or-variables/37581/3 "2024-11-08T12:01:08Z")

</div>


