Well, I was just preparing to answer you when I had an insight!
This code written above was to get some of my vocabulary from a firebase database and display it to me in a list view.
I expected to get:
Guten tag - bom dia
Gute Nacht - boa noite
…
But the only thing I was getting was an empty list or a list with one item. Remember yesterday in my previous post that I said I had to put a function WAIT…SENCONDS for some task to work? Prior to sending you this message, I tried it here and it worked.
Here would be a solution:
I might be wrong, but I feel that everytime you have a CALL FROM DATABASE statement inside a FOR EACH J statement, you MUST put this WAIT…SECONDS to get it to work.
It seems to be a problem from the platform. To debug this error I inserted a label on my screen to show in which variable J the app was to understand why my list wasn’t being built. I found that the app would crazily make a list of J’s without accomplishing the task inside the statement.
Another problem is that you cannot trust the results shown. For example: if you ask the app to WAIT 2 SECONDS between getting the results, you get wrong outputs. Take a look below.
If my code had another WAIT…SECONDS:
the outputs from the app would be repeated with one word refferring to more that one meaning:
When I remove the extra WAIT…SECONDS, what I get is
Note that the first word from the list will never appear and I got no idea why! Just accept and be happy!
My conclusion is that you cannot trust it at all. Maybe what I will have to do is to make that WEB API you told me about yesterday. In fact I tried, but I still get no result and I have no clue about where my problem is.