# Problem variables app

**URL:** <https://community.thunkable.com/t/problem-variables-app/1049919>\
**Category:** Questions about Thunkable X\
**Created:** [January 14, 2021, 4:47pm UTC](https://community.thunkable.com/t/problem-variables-app/1049919 "2021-01-14T16:47:33Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![angelo.bormolini](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@angelo.bormolini](https://community.thunkable.com/u/angelo.bormolini)\
**Post date:** [January 14, 2021, 4:47pm UTC](https://community.thunkable.com/t/problem-variables-app/1049919/1 "2021-01-14T16:47:33Z")

</div>

Good morning for a few days in the app variable they are no longer visible between one screen and another, if I use the stored variables the application between one screen and another freezes thanks

---

<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 14, 2021, 5:22pm UTC](https://community.thunkable.com/t/problem-variables-app/1049919/2 "2021-01-14T17:22:48Z")

</div>

Are you able to share the project link? And if so, tell us which variables are having this problem?

---

<div class="post-metadata">

**Author:** ![angelo.bormolini](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@angelo.bormolini](https://community.thunkable.com/u/angelo.bormolini)\
**Post date:** [January 14, 2021, 6:18pm UTC](https://community.thunkable.com/t/problem-variables-app/1049919/3 "2021-01-14T18:18:19Z")

</div>

this is a small example of the problem that was not there before (3-4 days ago)

> **[Thunkable](https://x.thunkable.com/copy/ddd036cf1f7717601a78fd415162dc6d)**

grazie 😀

---

<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 14, 2021, 8:59pm UTC](https://community.thunkable.com/t/problem-variables-app/1049919/4 "2021-01-14T20:59:38Z")

</div>

Two things:

(1) The problem is that the “when Screen starts” or “when Screen opens” blocks are not working correctly. For example, this does nothing:

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/1/01744e5f1d23f14bb1975913a80f16b50ff9be00.png)

This problem has been reported on the forums today:

> [@Issue with "when Screen Starts" event since Jan 12, 2021](http://community.thunkable.com/t/issue-with-when-screen-starts-event-since-yesterday/1047954):
>
> Hi there, out of nowhere and without me making any changes to the app, I noticed multiple things not working any more when testing in Thunkable Live on Android. Those are just the first three examples I noticed: On multiple screens: “When screen opens, from Label set text to XYZ” doesn’t work. List viewer literally just disappeared and isn’t showing any more on the screen. On one screen: “When screen starts, set labels to XYZ and background images to XYZ, then clone and set visibility to true…

> [@Problem with the open screen event](http://community.thunkable.com/t/problem-with-the-open-screen-event/1049016/):
>
> Hello, Does anyone else is experiencing issues in live test and downloaded version with all related to the open screen component. Since the latest version update (v253) this component stopped working causing large part of my project to crush. I need to release a new version today, does anyone knows how can i create the same behavior of the screen opening for my code to run. I need a particular code to run every time the user go to the home page. Is there any time estimation when this bug wil…

(2) You should **not** initialize a variable as text that you want to use for storing a list. This can break the variable. Do this instead:

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

If you fix the variable initialization in #2 above and then replace the “when Screen starts” blocks with “when button clicked” blocks, the rest of your blocks work correctly. See this modification:

[https://x.thunkable.com/copy/e0b6fb2fe20418f560956191aaed576c](https://x.thunkable.com/copy/e0b6fb2fe20418f560956191aaed576c)

---

<div class="post-metadata">

**Author:** ![angelo.bormolini](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@angelo.bormolini](https://community.thunkable.com/u/angelo.bormolini)\
**Post date:** [January 14, 2021, 9:44pm UTC](https://community.thunkable.com/t/problem-variables-app/1049919/5 "2021-01-14T21:44:54Z")

</div>

thanks, I tried or use the buttons and it works but in my app I can’t use them because the contents of the variables are a web API Response. wait for it to work again the “when Screen starts” or “when Screen opens” Ciaooo

> **[Thunkable](https://x.thunkable.com/copy/64d8aacd72179d7b510888548ec7a967)**

---

<div class="post-metadata">

**Author:** ![magwa101](https://avatars.discourse-cdn.com/v4/letter/m/b9bd4f/32.png) [@magwa101](https://community.thunkable.com/u/magwa101)\
**Post date:** [January 17, 2021, 8:59pm UTC](https://community.thunkable.com/t/problem-variables-app/1049919/6 "2021-01-17T20:59:56Z")

</div>

This variable is “2” coming in, I set it to “0” and set the label text to the variable…and it prints out as “2” not what I would expect, which was “0”. It seems so basic, what am I missing?

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

---

<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 17, 2021, 9:19pm UTC](https://community.thunkable.com/t/problem-variables-app/1049919/7 "2021-01-17T21:19:25Z")

</div>

HI @magwa101, welcome to Thunkable!

Can you post a screenshot of all of your blocks that relate to that variable?

---

<div class="post-metadata">

**Author:** ![angelo.bormolini](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@angelo.bormolini](https://community.thunkable.com/u/angelo.bormolini)\
**Post date:** [January 17, 2021, 9:29pm UTC](https://community.thunkable.com/t/problem-variables-app/1049919/8 "2021-01-17T21:29:51Z")

</div>

Hello I have not changed anything in my applications that worked until a week ago, when does this problem resolve? thank you so much

---

<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 17, 2021, 9:31pm UTC](https://community.thunkable.com/t/problem-variables-app/1049919/9 "2021-01-17T21:31:06Z")

</div>

I have no idea unless I can see your blocks, sorry. It could be user error, it could be the “When screen opens” issue, it could be any number of things.

---

<div class="post-metadata">

**Author:** ![angelo.bormolini](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@angelo.bormolini](https://community.thunkable.com/u/angelo.bormolini)\
**Post date:** [January 17, 2021, 10:31pm UTC](https://community.thunkable.com/t/problem-variables-app/1049919/10 "2021-01-17T22:31:51Z")

</div>

exactly the problem is when the screen opens or when the screen starts because if instead of opening the screen I use a button then it works (see example you made me)

---

<div class="post-metadata">

**Author:** ![angelo.bormolini](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@angelo.bormolini](https://community.thunkable.com/u/angelo.bormolini)\
**Post date:** [January 17, 2021, 10:58pm UTC](https://community.thunkable.com/t/problem-variables-app/1049919/13 "2021-01-17T22:58:44Z")

</div>

these are the blocks 🙂

![screen1](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/6/169cf1e0a3867d2ce7065c546aecf01013d2454e.jpeg) ![screen2](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/2/32e5063a82e7642377f15f2331915b7c26f75e72.jpeg)

---

<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 17, 2021, 11:50pm UTC](https://community.thunkable.com/t/problem-variables-app/1049919/15 "2021-01-17T23:50:08Z")

</div>

> [@angelo.bormolini](#):
>
> exactly the problem is when the screen opens or when the screen starts because if instead of opening the screen I use a button then it works (see example you made me)

This is a known issue: [Issue with "when Screen Starts" event since Jan 12, 2021](http://community.thunkable.com/t/issue-with-when-screen-starts-event-since-jan-12-2021/1047954/)

---

<div class="post-metadata">

**Author:** ![magwa101](https://avatars.discourse-cdn.com/v4/letter/m/b9bd4f/32.png) [@magwa101](https://community.thunkable.com/u/magwa101)\
**Post date:** [January 18, 2021, 12:34am UTC](https://community.thunkable.com/t/problem-variables-app/1049919/16 "2021-01-18T00:34:14Z")

</div>

![Screen Shot 2021-01-17 at 2.16.15 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/1/615682d60823bcf6a6c7e5790f442dfc51163625.png)

Please ignore the “\< 100” as that was just code to avoid the problem.

Basically setting the app variable BookViewerIndex to zero was not working. My workaround was the “change” variable to 100.

---

<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, 1:30pm UTC](https://community.thunkable.com/t/problem-variables-app/1049919/17 "2024-11-08T13:30:49Z")

</div>


