# Sharing variables on local Modules

**URL:** <https://community.thunkable.com/t/sharing-variables-on-local-modules/3261673>\
**Category:** Questions about Thunkable X\
**Created:** [October 10, 2024, 9:39am UTC](https://community.thunkable.com/t/sharing-variables-on-local-modules/3261673 "2024-10-10T09:39:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gm.cellinig8f](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/gm.cellinig8f/32/163435_2.png) [@gm.cellinig8f](https://community.thunkable.com/u/gm.cellinig8f)\
**Post date:** [October 10, 2024, 9:39am UTC](https://community.thunkable.com/t/sharing-variables-on-local-modules/3261673/1 "2024-10-10T09:39:58Z")

</div>

Is there a way to build a module (component) that have some variables I can use in various blocks?  
I created this Module:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/a/babcbe4e83f0b3c86e485e475ca880c52e501707.png)  
but when I incorporate it in a block, I have not the variable “cmpVarCat” available…

Thankyou!  
GM

---

<div class="post-metadata">

**Author:** ![brianl](https://avatars.discourse-cdn.com/v4/letter/b/f14d63/32.png) [@brianl](https://community.thunkable.com/u/brianl)\
**Post date:** [October 15, 2024, 11:04pm UTC](https://community.thunkable.com/t/sharing-variables-on-local-modules/3261673/2 "2024-10-15T23:04:51Z")

</div>

@gm.cellinig8f Component variables in a Module stay within a Module. You will have to pass the value of the variable out of your Module into a variable in your project. Alternatively, you can change the component variable into a cloud variable.

---

<div class="post-metadata">

**Author:** ![gm.cellinig8f](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/gm.cellinig8f/32/163435_2.png) [@gm.cellinig8f](https://community.thunkable.com/u/gm.cellinig8f)\
**Post date:** [October 22, 2024, 8:56am UTC](https://community.thunkable.com/t/sharing-variables-on-local-modules/3261673/3 "2024-10-22T08:56:36Z")

</div>

> [@brianl](#):
>
> You will have to pass the value of the variable out of your Module into a variable in your project

Thank you but… how?

Grazie  
GM

---

<div class="post-metadata">

**Author:** ![brianl](https://avatars.discourse-cdn.com/v4/letter/b/f14d63/32.png) [@brianl](https://community.thunkable.com/u/brianl)\
**Post date:** [November 4, 2024, 6:27pm UTC](https://community.thunkable.com/t/sharing-variables-on-local-modules/3261673/4 "2024-11-04T18:27:58Z")

</div>

You would have to create an [event](https://docs.thunkable.com/app-design/ui-components/modules#add-an-event) with a parameter to pass the value out of the module at the moment.

---

<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:** [February 2, 2025, 6:28pm UTC](https://community.thunkable.com/t/sharing-variables-on-local-modules/3261673/5 "2025-02-02T18:28:37Z")

</div>

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