Parameter Value Undefined Not a UIString Error

I receive this error message when I try to run this program. I am not sure what has been done wrong. I can go through the list but once it hits the end this error message appears in the console: WARNING: Line: 29: setProperty() value parameter value (undefined) is not a uistring.WARNING: Line: 30: setProperty() value parameter value (undefined) is not a uistring.WARNING: Line: 31: setProperty() value parameter value (undefined) is not a uistring.

The link is here: Code.org - App Lab

Thanks in advance, I appreciate the help

1 Like

You have gone off the end of the list. YearIndex < YearList.length + 1 is letting YearIndex get one too big. What would be an easy fix? Why?

You have 3 variables like this:

    YearIndex = YearIndex + 1;
    ChampionIndex = ChampionIndex + 1;
    FinalScoreIndex = FinalScoreIndex + 1;

Do you need all 3?

You have this:

  } else if ((YearList.length == 21)) {
    setScreen("screen3");
  }

Will that ever do anything? Why? Hint: How many records are in the database?

2 Likes

Thanks so much, that helps a lot