# Local Storage Variable Undefined

**URL:** <https://community.thunkable.com/t/local-storage-variable-undefined/39691>\
**Category:** Questions about Thunkable X\
**Created:** [August 7, 2018, 8:58am UTC](https://community.thunkable.com/t/local-storage-variable-undefined/39691 "2018-08-07T08:58:29Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![James\_Pinder](https://avatars.discourse-cdn.com/v4/letter/j/439d5e/32.png) [@James\_Pinder](https://community.thunkable.com/u/James_Pinder)\
**Post date:** [August 7, 2018, 8:58am UTC](https://community.thunkable.com/t/local-storage-variable-undefined/39691/1 "2018-08-07T08:58:29Z")

</div>

Hey guys,  
I am currently making an auction-type app and have a bit of a problem with saving to local storage between screens, it is similar to this issue: [Local Storage Problems](http://community.thunkable.com/t/local-storage-problems/29987)  
Which didn’t get a definitive answer, and this always returns Undefined.  
Below is my project if you need reference:  
[https://x.thunkable.com/projects/5b695d4ebb88cc10f13512ab/](https://x.thunkable.com/projects/5b695d4ebb88cc10f13512ab/)  
Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Karasinghe](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/karasinghe/32/22836_2.png) [@Karasinghe](https://community.thunkable.com/u/Karasinghe)\
**Post date:** [August 7, 2018, 10:03am UTC](https://community.thunkable.com/t/local-storage-variable-undefined/39691/2 "2018-08-07T10:03:49Z")

</div>

I will help you after identifying the app and the problem

---

<div class="post-metadata">

**Author:** ![Karasinghe](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/karasinghe/32/22836_2.png) [@Karasinghe](https://community.thunkable.com/u/Karasinghe)\
**Post date:** [August 7, 2018, 10:17am UTC](https://community.thunkable.com/t/local-storage-variable-undefined/39691/3 "2018-08-07T10:17:10Z")

</div>

Did you notice that there is a problem on the reload procedure’s 1st block. On the first “DB1” block there is a place to write the key to enter data. you have missed a part of that “join” block to put text.  
is this thing is helpful if not follow this link :[https://docs.thunkable.com/thunkable-cross-platform/create/blocks/text](https://docs.thunkable.com/thunkable-cross-platform/create/blocks/text) .

---

<div class="post-metadata">

**Author:** ![James\_Pinder](https://avatars.discourse-cdn.com/v4/letter/j/439d5e/32.png) [@James\_Pinder](https://community.thunkable.com/u/James_Pinder)\
**Post date:** [August 7, 2018, 11:08pm UTC](https://community.thunkable.com/t/local-storage-variable-undefined/39691/4 "2018-08-07T23:08:28Z")

</div>

Hey, thanks for the note, but it didn’t help the situation. Also I haven’t got an android device so I couldn’t get your app 😞. Thanks, anyway though, the problem is on screen “Search Results”

---

<div class="post-metadata">

**Author:** ![Karasinghe](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/karasinghe/32/22836_2.png) [@Karasinghe](https://community.thunkable.com/u/Karasinghe)\
**Post date:** [August 8, 2018, 5:36am UTC](https://community.thunkable.com/t/local-storage-variable-undefined/39691/5 "2018-08-08T05:36:45Z")

</div>

Sorry, I can’t find the problem. If it is argent please contact with message with “actech” hi can help you

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [August 8, 2018, 7:44am UTC](https://community.thunkable.com/t/local-storage-variable-undefined/39691/6 "2018-08-08T07:44:02Z")

</div>

To debug the program, add a Label to the screen. Before each operation and after each variable change operation, output its value in this Label.Text.

---

<div class="post-metadata">

**Author:** ![James\_Pinder](https://avatars.discourse-cdn.com/v4/letter/j/439d5e/32.png) [@James\_Pinder](https://community.thunkable.com/u/James_Pinder)\
**Post date:** [August 8, 2018, 9:16pm UTC](https://community.thunkable.com/t/local-storage-variable-undefined/39691/7 "2018-08-08T21:16:49Z")

</div>

I have already done this, and th variable loses it’s value once I change screens, also it is an error with local sorage,not firebase DB

---

<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, 12:00pm UTC](https://community.thunkable.com/t/local-storage-variable-undefined/39691/8 "2024-11-08T12:00:51Z")

</div>


