Hello dear members,
I am working with lists, because I want to create a previous and next button for 214 images, which I have uploaded for Chinese radicals (they are a part of the Chinese characters). The app shows an image with a radical and in the label below appears the meaning (also a list with 214 items). Could you please have a look at the block image, what is wrong please? I am not so good in programming and so I would happy about a detailed help, perhaps with the correct example. Always I get the error "Bad arguments to select list item".
![blocks|180x500]
Thank you very much. Have a great day!
Best,
Martina
![blocks|180x500]
Dear TIMAI2, Thank you, now it is ok with the block.png. But I also do not know, which block or part comes into the purple procedure block, there is nothing, I have no idea. I also added the AIA file. Thanks. Best Martina
I gave your aia project a bit of revision, replaced the two massive lists with a file. Also reset your component settings so that everything displayed on screen, you can adjust as you wish. Item 6 's image was not written correctly, so i have fixed that too.
P.S. My German is weak. I thought Zuruck meant back? The button functions might be switched.
P.P.S. I added extra protection against the two long lists getting out of sync with each other, using the min function.
That prevents the index from falling off the end of the shorter of the two lists, if ever one list is shorter than the other.
The usual way to force two lists to line up is to make a table, a list of pairs.
Dear TIMAI2, Thank you very much, but I tried to put in some image names into the text field where was # symbol, but I get the same error. Also was an error in two parts where I have put in get global index. Here is the image of blocks:
If using a file, it would be better to use a google sheet to create a two column table, and to then download that sheet as a csv table to the app.
Also, given the smaller size of each of the image files, it may work just as well, if the images were stored online, and called down to the app as needed.