Page 136 - CodePilot V5.0 C5
P. 136
9. Procedures Blocks: These blocks let you create reusable sets of instructions.
They help you avoid repeating code and keep your app organised.
Example:
to procedure2 Collects a sequence of blocks together into a group.
result
to procedure Same as a procedure do block, but this procedure returns
do
a result when called.
CREATING AN APP
In this activity, you will create an app that shows a multiplication table when a
number is entered. The app will display the results of multiplying the number by 1 to 10.
To make the Multiplication Table App, follow the given steps:
Step 1 Click on the New Project button and name it Multiplication_Table.
Step 2 Click on the Screen1 option and set AlignHorizontal to Center: 3 and
AlignVertical to Top 1.
Step 3 Drag a Label from the Palette to the Viewer, then set its properties: Text
to Multiplication Table, FontSize to 30, check FontBold and align it to
Center.
134 CodePilot (V5.0)-V

