如何使用 TinyDB 执行数学运算? (应用程序发明家 2)
How do I perform math using TinyDB? (App Inventor 2)
我正在尝试使用 TinyDB 在一个屏幕上存储一个值并在另一个屏幕上显示它。在第二个屏幕上,我想将第一个屏幕上使用 TinyDB 存储的数字加 1。但是,当我尝试这样做时,什么也没有发生。我做错了什么?
这是我的两个屏幕代码。
屏幕 1
屏幕2
您已经将 Screen2.Initialize
中的可用计算机加载到标签 computersAvail.Text
中。因此在 Button1.Click
事件中首先像这样添加 1
set computersAvail.Text to get computersAvail.Text + 1
并将更新后的可用计算机存储在 TinyDB
中,然后使用以下块
TinyDB.StoreValue "Computers"
get computersAvail.Text
顺便说一句。首先 do the tutorials 学习 App Inventor 的基础知识会有所帮助...
另见 this link for "the lost souls"...
我正在尝试使用 TinyDB 在一个屏幕上存储一个值并在另一个屏幕上显示它。在第二个屏幕上,我想将第一个屏幕上使用 TinyDB 存储的数字加 1。但是,当我尝试这样做时,什么也没有发生。我做错了什么?
这是我的两个屏幕代码。
屏幕 1
屏幕2
您已经将 Screen2.Initialize
中的可用计算机加载到标签 computersAvail.Text
中。因此在 Button1.Click
事件中首先像这样添加 1
set computersAvail.Text to get computersAvail.Text + 1
并将更新后的可用计算机存储在 TinyDB
中,然后使用以下块
TinyDB.StoreValue "Computers"
get computersAvail.Text
顺便说一句。首先 do the tutorials 学习 App Inventor 的基础知识会有所帮助...
另见 this link for "the lost souls"...