Global variables initialized in Screen1 are not recognized in Screen2

Global variables initialized in Screen1 are not regcognized in Screen2

I merged Screen1 and Screen2 into one project. Maybe this is the reason of my problem?

Thanx in advance for any hint....
Joachim

They won't be.

You need to save variables to a tinydb (say in Screen1), and have a tinydb component in each screen using the same namespace. Then you can access the variables in both screens from the tinydb.

Tim, thank you very much. I will try it soon...

see also tip 1 here

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.

1 Like

Hi Taifun,
thanks a lot for your reply. You and Tim pushed me forward a good deal in my MITAppInventor-Knowhow

Best regards/opowoj