7MULTIPLICATION STATION II: REUSING CODE WITH PROCEDURES

Image

Sometimes you’ll want to reuse a section of code to complete a specific task you’ve completed before. In these situations, you can define or create a procedure that includes those lines of code, and then give that procedure a unique name.

This way, whenever you want to execute that task, you can call the procedure by name instead of writing the same lines of code over and over again. This also means that when you have to correct something in that code, you only have to fix the code inside the procedure once.

In this chapter, you’ll learn how to create procedures in App Inventor and use them ...

Get Learn to Program with App Inventor now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.