Hi,
in the app I’m making the indices of my lists are acting weirdly. If I am looking at the screen open on the live testing then all of my lists in the code for that screen work properly on the live testing with no issues. But if I am looking at a different screen then the lists act like they start at 0 instead of 1 and this messes up the live testing of my app.
Has anyone else encountered this issue? Any suggestions for fixes or workarounds are welcome.
I found a workaround and have already implemented it. It would take some back tracking to get that problem. If I run into the problem again I’ll make sure to send it to you.
If its of any use to anyone, my workaround is this:
In my database I make the first item in the list ‘¬’, I then have my code see if that’s in the first position. If it is I have the 1st item I want as the 2nd index, and so on.
If it can’t see it, it means that the indices have messed up and skipped it so I have my code just take the 1st item I want from the 1st index, and so on.
create a “count with” block like:
– count with i from “1” to “length of list” by “1”
– do … in list get #i …
… will not work correctly. In my case the first item will be forgotten! I have to explicitly take the number-block from “Math”, insert it in the slots in the “count with” - block and fill in the number “1”, even if it is filled with a “1” by default.