# App variables bug!

**URL:** <https://community.thunkable.com/t/app-variables-bug/438438>\
**Category:** Questions about Thunkable X\
**Created:** [January 31, 2020, 6:00pm UTC](https://community.thunkable.com/t/app-variables-bug/438438 "2020-01-31T18:00:54Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidsobhysabetb](https://avatars.discourse-cdn.com/v4/letter/d/ce73a5/32.png) [@davidsobhysabetb](https://community.thunkable.com/u/davidsobhysabetb)\
**Post date:** [January 31, 2020, 6:00pm UTC](https://community.thunkable.com/t/app-variables-bug/438438/1 "2020-01-31T18:00:54Z")

</div>

Hi,  
I’m having a strange problem when I’m creating app variable ( not stored ) It acting exactly like stored variable, so when I close and open the app again checking out the value of this app variable … the same value before app close !

![index1](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/9/0961484c1047c5337f4bc171d2e044a67966aaf4.jpeg)  
 ![index3](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/6/16096bd283829daf5bbf5ccbe042e97d8a42104b.png)

when opening screen2 at least once, the closing and reopening the app and directly open screen 1 the result is : Done  
how that could be happen ? it’s supposed to be null !  
thanks in advance

---

<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:** [January 31, 2020, 6:46pm UTC](https://community.thunkable.com/t/app-variables-bug/438438/2 "2020-01-31T18:46:50Z")

</div>

My understanding of app variables is that they retain their value until the app is force quitted.

---

<div class="post-metadata">

**Author:** ![davidsobhysabetb](https://avatars.discourse-cdn.com/v4/letter/d/ce73a5/32.png) [@davidsobhysabetb](https://community.thunkable.com/u/davidsobhysabetb)\
**Post date:** [January 31, 2020, 7:26pm UTC](https://community.thunkable.com/t/app-variables-bug/438438/3 "2020-01-31T19:26:47Z")

</div>

and that’s exactly what i need to do, but the result is not like that !  
It’s acting like stored variable !

---

<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:** [January 31, 2020, 9:41pm UTC](https://community.thunkable.com/t/app-variables-bug/438438/4 "2020-01-31T21:41:24Z")

</div>

Any chance you can post a link to your project? I could test it on my phone and figure out why it’s keeping variable values when you don’t want it to.

And just to be clear: force quitting an app can different than closing and re-opening it, assuming you’re “closing it” by putting it in the background.

---

<div class="post-metadata">

**Author:** ![davidsobhysabetb](https://avatars.discourse-cdn.com/v4/letter/d/ce73a5/32.png) [@davidsobhysabetb](https://community.thunkable.com/u/davidsobhysabetb)\
**Post date:** [January 31, 2020, 10:21pm UTC](https://community.thunkable.com/t/app-variables-bug/438438/5 "2020-01-31T22:21:36Z")

</div>

Here’s the example project  
[https://x.thunkable.com/projectPage/5e34a3c1db2eec0fc484cb33](https://x.thunkable.com/projectPage/5e34a3c1db2eec0fc484cb33)  
and of course I’m forcing the app to close not putting it in background  
thanks in advance .

---

<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:** [January 31, 2020, 10:29pm UTC](https://community.thunkable.com/t/app-variables-bug/438438/6 "2020-01-31T22:29:27Z")

</div>

I can confirm that it does keep the app variable value when force-quitting Thunkable Live and re-opening it. Now to test it on a downloaded copy…

---

<div class="post-metadata">

**Author:** ![davidsobhysabetb](https://avatars.discourse-cdn.com/v4/letter/d/ce73a5/32.png) [@davidsobhysabetb](https://community.thunkable.com/u/davidsobhysabetb)\
**Post date:** [January 31, 2020, 10:31pm UTC](https://community.thunkable.com/t/app-variables-bug/438438/7 "2020-01-31T22:31:14Z")

</div>

I did that too, the same result .  
I think it’s really a bug !

---

<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, 11:41am UTC](https://community.thunkable.com/t/app-variables-bug/438438/8 "2024-11-08T11:41:20Z")

</div>


