Wordle Type App - Struggling with Segment

Hi there,

I'm getting the following error:
RuntimeError. Irritants: (Segment: Start (2) + length (1) - 1 exceeds text length (1). Invalid text operation) Note: You will not see another error reported for 5 seconds.

I believe it is to do with the use of segment, but I am unsure how to correct this. I am very new to app inventor and was following another tutorial for the majority of this.

Woofle.aia (31.4 KB)

A link is always helpful, so we can see where you are coming from...

Sure thing!
MIT App Inventor 2: Wordl Inventor (youtube.com)

You may find this helpful:

Thanks, I was working through that tutorial on youtube as it was compatible with the AI companion on an iphone.

I did take a look at the aia for the ones mentioned at that link but neither appear to work using an iphone as a companion

Looking at your blocks, I get the impression that you missed the chapter on looping with an index. (I did not look closely enough - ABG)

You never use a loop with an index:
blocks (1)

That's needed where you want to walk two lists in parallel.

This is just a first impression, before studying your code in more depth.

How about explaining how your code works?

Whatever your error is, it's not confined to iOS:

Select list item: Attempt to get item number 0, of the list [com.google.appinventor.components.runtime.TextBox@c8f7847, com.google.appinventor.components.runtime.TextBox@f735612, com.google.appinventor.components.runtime.TextBox@d8f3a99, com.google.appinventor.components.runtime.TextBox@905f20c, com.google.appinventor.components.runtime.TextBox@5d51a5b]. The minimum valid item number is 1.
Note: You will not see another error reported for 5 seconds.

(On press of Enter button after entering "owner".)

P.S. I see your word list is in CAPS, but you never upshift the user input.

Hmm. That's happening for all selections? It looks like a 0-index conversion error, but if every selection is being reported as item 0, it's something more.

This is an exercise in futility.

We are asked to debug an undocumented app copied by hand from a YouTube video that lacks explanation of how the app works, its data structures, or its procedures.

You should be asking in the YouTube comments section.

Ask the author to answer in this thread.

Too many of those YouTube 'tutorials' are unsupported click bait.