Variables are not passed correctly between screens

First screen

Second screen

I get this error

Where is the mistake?

In your example transport2 on Screen2, it is not a list.

In this lesson, such a scheme works

How can I solve my problem?

@111581 You might ask the creator of the video and/or make sure you duplicated his code exactly.

Or, use virtual screens and avoid much of the issues involved when developers attempt to pass information between Screens.

Checked, everything matches
I'm newbie, need help

You probably want get start value not get plain start text. The former interprets the contents of the text based on App Inventor's type system whereas the latter block (which is the one you use) performs no such interpretation and always returns text.

See http://ai2.appinventor.mit.edu/reference/blocks/control.html#getstartvalue for more details.

1 Like

Thank you! Exactly what is needed

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