Index too large. help please

This is all my code, but when I want to open the application on my Android it keeps telling me "index too large."

Any help would be much appreciated.

1 Like

Clock2.Timer is looking in global Boxes for items 1,2,3 but you initialized it as an empty list, and never got around to adding items to that list.

Either add data to that list, or test for length of list >= 3 before selecting items from that list.

1 Like

okay thanks, I really appreciate it

can you tell me how to add items to the list because I am new and I don't know how to do that.
Thank you,

1 Like

This image shows two lists.


The Boxes list was empty since the beginning and items were added to it during Screen1.Initialize event.
The InitializedList had its values set from the beginning and an item was replaced from it on Button1.Click event.

1 Like