In my app, I need to save a number that a label is changed to, so that when the user leaves and re-enters the app, they number is still the same, instead of being reset to 0. In more detailed manner, I am saying that I have made point system. I want the points to remain same after restarting the app instead of going back to zero
And instead set the variable when this screen opens using the screen opens block
Although it can be plugged into an initialize block, I believe they don’t work that way. You must set the value when using a data source block somewhere other than the initialization block.
The problem is that you are storing the score in two places: a variable and a data source but not updating both when the user enters a different score.
Move the Update Value block up one spot. You need to update the data source before setting the score variable.
If you still can’t get the score to display correctly, provide a link to your project and tell us which screen has the problem.