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

Arguments

An argument is a way to give information to a procedure when it is called. You already provided arguments to procedures when you used a block with an open socket(s), such as when you set the value in a textbox. The value you connect to the set block is an argument. Creating a procedure with an argument involves the mutator, which is the small blue box with a white gear. Clicking this blue icon enables you to drag additional smaller blocks onto the larger block.

With procedures, the little blocks in the mutator add arguments. Each argument is a named value of information that will be passed into the procedure whenever it is called. These values are inputs to the procedure. This changes the shape of the call block, adding sockets for ...

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