O'Reilly logo

Learning MIT App Inventor: A Hands-On Guide to Building Your Own Android Apps by Mark Sherman, Derek Walter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

What You Can Store in Variables

In this chapter, we’ve dealt mostly with storing number values in variables. This section is here to clarify that you can store any kind of value in variables. Figure 4.22 shows a few of the various types that can be stored in variables.

Image

Figure 4.22 A few examples of what you can store in variables.

No limitations restrict the types you can store in global or local variables. Any block that has a left-pointing socket can be stored in these variables.

Component properties, which we used like variables, are built into the components to provide certain functions, so whatever you store in them has to make sense ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required