# Re-setting the screen

**URL:** <https://forum.code.org/t/re-setting-the-screen/36122>\
**Category:** Coding and Debugging Help\
**Created:** [April 1, 2022, 10:27am UTC](https://forum.code.org/t/re-setting-the-screen/36122 "2022-04-01T10:27:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulabeer71](https://avatars.discourse-cdn.com/v4/letter/p/e19adc/32.png) [@paulabeer71](https://forum.code.org/u/paulabeer71)\
**Post date:** [April 1, 2022, 10:27am UTC](https://forum.code.org/t/re-setting-the-screen/36122/1 "2022-04-01T10:27:37Z")

</div>

I am using App Lab.  
Is there a way of resetting everything about your app without having to re-code everything. Ideally, I’d like to be able to program a button so that the user hits the button and any changes that they have made disappear and it re-initiates the app as though it has just been opened. Many thanks. Paula

---

<div class="post-metadata">

**Author:** ![jdonwells](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/jdonwells/32/7900_2.png) [@jdonwells](https://forum.code.org/u/jdonwells)\
**Post date:** [April 2, 2022, 7:10pm UTC](https://forum.code.org/t/re-setting-the-screen/36122/2 "2022-04-02T19:10:15Z")

</div>

You would want to put any initialization into a function. Call that function as the program starts and anytime you want to start over.

---

<div class="post-metadata">

**Author:** ![paulabeer71](https://avatars.discourse-cdn.com/v4/letter/p/e19adc/32.png) [@paulabeer71](https://forum.code.org/u/paulabeer71)\
**Post date:** [April 3, 2022, 10:40am UTC](https://forum.code.org/t/re-setting-the-screen/36122/3 "2022-04-03T10:40:09Z")

</div>

Thanks Don. Best wishes. P
