简体   繁体   English

卡在MIT APP Inventor上:

[英]Stuck on MIT APP Inventor:

Once I have completed the form, I cannot see the the form's output in the ResultsLabel I created. 填写完表单后,在创建的ResultsLabel中将看不到表单的输出。 Attached is a screenshot below, does it look OK? 附件是下面的屏幕截图,看起来还可以吗?

All help appreciated! 所有帮助表示赞赏! 在此处输入图片说明

Regarding your statement "I cannot see the form's output in the label", is it possible that it's hidden behind the keyboard? 关于您的声明“我在标签中看不到表单的输出”,它是否可能隐藏在键盘后面? Press the 'Done' button to hide the keyboard when you're done typing. 输入完毕后,按“完成”按钮隐藏键盘。

Regarding your question "does it look OK": 关于您的问题“看起来还可以”:

  • Your first StoreValue event is saving the value as the tag, which probably isn't great practice but can work 您的第一个StoreValue事件正在将值保存为标签,这可能不是很好的做法,但是可以工作
  • However, your second StoreValue overwrites the first one, and the third StoreValue overwrites the second one because you're using the same tag for all three. 但是,第二个StoreValue会覆盖第一个,而第三个StoreValue会覆盖第二个,因为您对这三个都使用相同的标记。

If you want to save the two thumbpositions for that particular name you should do this: 如果要保存该特定名称的两个拇指位置,则应执行以下操作:

TinyDB.StoreValue 
       tag   = {name.text}
       value = {make a list
                    {cashrequired.thumbposition}
                    {period.thumbposition}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM