Adding numbers using LiveCode is a simple task. To demonstrate how to add two numbers, we will create a user interface that accepts two numbers and, when the equals sign is selected, the sum of the two numbers will be displayed.
Follow the steps in this recipe to gain experience in adding two numbers with a mobile app written in LiveCode:
Open LiveCode and create a new main stack.
Set the background color of the default card to black.
Drag a new text entry field to the card and set the following properties:
Name:
fld_nbr1
Width:
88
Height:
31
Location:
194
,53
Font: Courier
Text size: 18
Align text right
Drag a second text entry field to the card and set the following properties:
Name:
fld_nbr2
Width:
88
Height:
31
Location:
194
,95
Font: Courier
Text size: 18
Align text right
Drag a third text entry field to the card and set the following properties:
Name:
fld_nbr3
Width:
88
Height:
31
Location:
194
,151
Font: Courier
Text size: 18
Align text right
Drag...