Как организовать так, чтобы данные не стирались при закрытии приложения. Есть 2 экрана один запороленный, второй отрывает блокнот для записи
you can save the data in TinyDB.
Я это понимаю. но как написать код? я создала список и он все время обнуляется
show us your relevant blocks.
change ai2 language to English then download image. we can not use translator on image.
Switch screens correctly
And read your data from TinyDB again in event Screen1.OtherScreenClosed
Taifun
When working with TinyDB, I try not to mix them with global variables.
Instead, I read and write directly from TinyDB with the TinyDB blocks.
If I need to update a list in TinyDB, I copy the data into a local variable, to force myself to immediately put the data back into TinyDB.
This avoids confusion over whether or not my global variables are fresh or stale.
Можете написать что будет в блоке? Не совсем понятно
Можете написать более подробно?
In screen 2 initialization you are using a different tag to load the list.
Be consistent.
I like to code a global constant variable for my special tag to avoid spelling errors. I use all CAPS for the variable name to remind me it's a constant.