Hello guys
Please check given blocks
I have some problem with Global variable number
When I click on done button in listview numbers count regularly like 1 2 3
And when I close app and again tried to click on done button numbers count Again start from 1 and 2
U must use tinyDB component to store those value like 1,2,3,4 etc if you use global variable then when you close app it will delete all values from variable
All of the answers are correct, so let me summarize.
Global variables are volatile, meaning when the screen or application closes the contents are lost. They are not sticky.
To have a variable be sticky across screens, or across application usage, you need to store that content/state somewhere. Examples include TinyDB, Files, firebase, etc.
Setup a procedure to
a) Write to the place holder (like TinyDB)
b) Read from the place holder
c) Error check if there is a problem.
Beware, TinyDB data is destroyed if someone uninstalls the application. You will need to store in another maner if you want the data to be sticky across devices, or installs.
You have to decide how you want things stored. As @Deepanshu_Arya said you gotta try things out. there are so many block examples and snippets around with a little bit of work you can find and do it.
this is the block If u need to coutdown upto a date u want. example start date is current running date or 07/31/2019 12:00:00 and end date is 08/10/2019 12:00:00 the this coding will help to what to do after time ends. if anyone got more simple blocks than this plz tell fast…