在麻省理工学院App Inventor中我该怎么做?
我想在文本框中输入一个名称,在另一个文本框中输入一个ID并使用相同的按钮来保存数据。输入的数据必须在应用程序重新启动后继续存在,并且可以在应用程序中的其他位置调用它。
有可能/困难吗?我的意思是名字和ID可以很多。之后如何从列表中调用特定ID?
答案 0 :(得分:0)
Create two empty lists, one for names and one for IDs. And data to them on button press. Create a tinyDB element. and store those data to that with two different tags, one for name and another for ID.
For you to understand it better, here is the screenshot of the blocks.
For getting all new entries in new line, do this:
Front End of the app:
Hope it will help you