Saving variable with storage items

Guys I want make a button if I click it Its increase a any variable(Its not important) but after increase variable I want the system going to save It and when screen intialize get value(variable) basically auto save variable with which thing I can do it?

hi,
you have to use a image

It would work like

2 Likes

Hello Kafası Güzel Penguen

You can use TinyDB like so:
ButtonSaveVar.aia (2.4 KB)
blocks

1 Like

Along with this you can also add one more block section to bring things back to default setting.

1 Like

I'm not a fan of global variables in a multiple screen setting.
If I need to save data in TinyDB, I might as well just use it directly through procedures, like
increment TinyDB demo

increment_TinyDB.aia (4.6 KB)

1 Like