# Opens where it was closed

**URL:** <https://community.thunkable.com/t/opens-where-it-was-closed/3149780>\
**Category:** Questions about Thunkable X\
**Created:** [August 20, 2024, 4:08pm UTC](https://community.thunkable.com/t/opens-where-it-was-closed/3149780 "2024-08-20T16:08:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![emmyizi101q1s](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/emmyizi101q1s/32/175278_2.png) [@emmyizi101q1s](https://community.thunkable.com/u/emmyizi101q1s)\
**Post date:** [August 20, 2024, 4:08pm UTC](https://community.thunkable.com/t/opens-where-it-was-closed/3149780/1 "2024-08-20T16:08:41Z")

</div>

How do I make my app so that it opens on whatever page the user left it. each time

---

<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:** [August 20, 2024, 7:18pm UTC](https://community.thunkable.com/t/opens-where-it-was-closed/3149780/2 "2024-08-20T19:18:52Z")

</div>

On every screen open, you can have a variable that saves the name of the screen it is on. Then on your very first screen that opens when you launch the app, you make it so that on screen start, navigate to the screen name saved in the variable.

---

<div class="post-metadata">

**Author:** ![emmyizi101q1s](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/emmyizi101q1s/32/175278_2.png) [@emmyizi101q1s](https://community.thunkable.com/u/emmyizi101q1s)\
**Post date:** [August 22, 2024, 2:46pm UTC](https://community.thunkable.com/t/opens-where-it-was-closed/3149780/3 "2024-08-22T14:46:37Z")

</div>

Can you show how the blocks should be setup

---

<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:** [August 23, 2024, 6:57pm UTC](https://community.thunkable.com/t/opens-where-it-was-closed/3149780/4 "2024-08-23T18:57:29Z")

</div>

I’ll write out the pseudo-code of what it’ll look like. If you are lost in a particular area, send a screenshot of where you are and I can help guide you through it.

In the first screen, initialize a stored variable called “last screen”. Then when the screen starts, if “last screen” is not null, navigate to stored variable “last screen”.

In every other screen, when the screen opens, set stored variable “last screen” to a text block with the name of the current screen as the string value.

---

<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:** [November 21, 2024, 6:57pm UTC](https://community.thunkable.com/t/opens-where-it-was-closed/3149780/5 "2024-11-21T18:57:59Z")

</div>

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