Runtime Error: The list cannot get item number 2 of list length 1!

I have attached the screen all blocks below don't know why this runtime error is happening ?



You can remove half of your blocks to check if it's working, then add another half to check again.
This can help you to debug your code.

any way, I found this, it looks odd:
image
why make a list with length =1 then loop on it?
and make a list with length =1 and select list item?

1 Like

(Canned Reply: ABG- Export & Upload .aia)
Export your .aia file and upload it here.
export_and_upload_aia

I am not making a list with length =1 it is because user has inputed only 1 value in 1 variable on other screen before out of 4 input varaible text boxes (rest will be 0 value default).

but you code said so:
image

and here:
image

if the number is 2, you will get an error: get item number2 of list length 1.

then why I gave the if number<=length of list get start value block?.
why it is still entering inside loop, if statement

But you are selecting item from a length =1 list not start value.

start value only it is but of length= 1, when input is of only 1 varaible out of 4

Please explain to us what you are trying to do.

I am trying to take 4 input text box and its value stored to other screen as cost1,sell1,collection1,expense1 into reversed order . Actually making a money tracking app

Trying to store every input in ordered manner to display in pie graph and list view

Upload your aia please

1 Like

Select list item: Attempt to get item number 2 of a list of length 1: [[[[["com.google.appinventor.components.runtime.TinyDB@3ab637d"]]]]]
Note: You will not see another error reported for 5 seconds.

are you aware, that you uploaded your project into a public community... so everyone could download it...

Taifun

1 Like

how to upload privately
????

use PM

Taifun