Page 106 - KEC Khaitan C5 Flipbook
P. 106
Step 3 Add a TextBox for input by dragging it from the Palette to the Viewer, then set its
Hint to Enter a number.
Step 4 Drag a Button1 from the Palette to the Viewer, then set its Text to Generate.
Step 5 Drag a ListView from the Palette to the Viewer. The ListView will display the
multiplication table after the user enters a number and clicks the Generate
button.
Step 6 Click on Blocks in the top-right corner to switch to the Blocks Editor and start
coding the app's functionality.
Step 7 Click on Variables from the Blocks menu.
The list of coding blocks appears.
Step 8 Create the Global Variable List, drag the initialize global name to block into the
Viewer, then click on the name section and rename it to List.
Step 9 Add an Empty List from the Lists category, drag the create empty list block and
connect it to the List variable.
Step 10 Drag the initialize global name to block
into the Viewer, then click on the name
section and rename it to Answer.
Step 11 From the Math category, drag the
number block (0) and connect it to the
Answer variable.
Step 12 Click on Button1 from the list of components.
The list of coding blocks appears.
Step 13 Drag the when Button1.Click block into the Viewer.
104 Premium Edition-V

