Good day, every POWER USER!!!
Always I really appreciate all power users help.
I came to a conclusion today once again that there is no way to settle my trouble without your help.
My blocks are like the attached picture.
My txt file has many rows.
I saw to 11th row today for example, so I want to see from 12th row(or 11th) next.
So I inserted the block like ‘picture 2’, and it works well on the app inventor, but it doesn’t work on the actual app. Of cause the value of ‘here_before’ was stored in the tinyDB1 in advance.
It works well under the only block of ‘picture 1’, though it can’t remember the list I want.
(Q 1) How can I settle this problem?
(Q 2) In addition, I’d like to know to store based on the an item (herein ‘ID”), not based on the index
You need to declare/initialize the variable with a constant value, even if variable is not constant. As TinyDB is not returns a constant value, it gives an error when you do that.
However, you can set the variable value after declaring, for example at Screen.Initialize.