Attempt to get item number 2 of a list of length 1

Hi, Everyone

I have one of those weird errors which I hope a pro will see with his or her eyes closed. I have a block which connects to a list item (ListView1) and displays certain arrangements based on the name in the list. The list items are typical: MAC Address - Name - Signal Strength. My project runs but before it does, I get the following error every time I open the app: I can dismiss the error by clicking outside of the error box. It goes away and does not return until the next tome the app is opened.
ListLengthError
I do not understand if I have to tell the program how long the list is, or what. Here is the block from which I select the list name:

If anyone can tell me why I am receiving this error, I would really appreciate it.
Thank you!!

Sorry you have used wrong blocks

Split text at space listview1 selection is correct

But you have used listview1 selection index which will give you only the int. See your error, instead of selection it gives you 3, it says you have picked the third item. Instead if item you are using its index place

it would really help to use Do it to debug your blocks to see yourself what's going on...

unknown

use Do it to debug your blocks, see also tip 4 here App Inventor: How to Learn | Pura Vida Apps
see also Live Development, Testing, and Debugging Tools
Taifun

OMG, Thank You So Much! I had it working at one point but I "corrected" it to my own detriment.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.