Values you enter on the text fields are considered strings or series of characters regardless if it is a number or integer.
The sample application above converts string to number and them up then displays it on the label component.
Code:
The action was triggered upon clicking the 'Add' button.
note:
variable 'total' is declared as global variable with double type.
Tip:
set 'FullRowSelect' to true of the list view property so that when you click an item of the list view, it will highlight the entire row.
0 comments:
Post a Comment