I have
In Screen3 : textbox3
In Screen2 : Button2a & textbox2a with variable values
Button2b & textbox2b with variable values
Button2c & textbox2c with variable values
I want
**When I open Screen 3 from anywhere other than Screen2 textbox1.text= empty
**When I an in screen 2 only and click Button2a
open another screen = Screen 3 and Set Textbox3.text = Textbox2a.text**
**and when I click Button2b
open another screen = Screen 3 and Set Textbox3.text = Textbox2b.text**
**and when I click Button2c
open another screen = Screen 3 and Set Textbox3.text = Textbox2c.text**
I know how to to all that by tinnydb or by open screen with start value
but i dont know how to do the first action
" When I initialize Screen 3 from anywhere other than Screen2 set textbox1.text= empty else get value from Screen2 "
Taifun
July 13, 2024, 7:25pm
2
Use TinyDB to transfer data between screens
Alternatively use virtual screens, see also tip 1 here General Tips and Tricks for App Inventor
A very good way to learn App Inventor is to read the free Inventor's Manual here in the AI2 free online eBook App Inventor 2 Book: Create Your Own Android Apps ... the links are at the bottom of the Web page. The book 'teaches' users how to program with AI2 blocks.
There is a free programming course here Course In A Box and the aia files for the projects in the book are here: App Inventor 2 Book: Create Your Own Android Apps
How to do a lot of basic things with App Inventor are described here: How do you...? .
Also do the tutorials Our Tutorials! to learn the basics of App Inventor, then try something and follow the Top 5 Tips: How to learn App Inventor
Taifun
Trying to push the limits! Snippets , Tutorials and Extensions from Pura Vida Apps by Taifun.
Taifun
July 13, 2024, 7:28pm
3
Before switching screens, store the current screen name in TinyDB
Then in Screen3 Initialize check TinyDB to get the last current screen
Taifun
Taifun
July 13, 2024, 8:30pm
5
1 Like
system
Closed
July 20, 2024, 8:31pm
6
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.