I have 1 textbox, 1 label and 1 button,
When pressing the data button in the textbox will display on the label and the next press will display in a new line.
For example:
_textbox: hello
press the button
lebel show:
hello
hello
hello
hello
For label without HTMLFormat:
For label with HTMLFormat:
2 Likes
thanks TimAI2:
After each press yes, the numbers in the label will be automatically added
Oh, do you want the numbers added up to give a total ?
1 Like
If you replace the Label with a ListView, or split the Label.Text at \n,
you can feed the list of numbers into a Sum procedure, attached …
![Capture](https://community.appinventor.mit.edu/uploads/default/original/2X/2/258f04c3e3c0bee4495b51d25e86204de8733a44.png)
![global number_list](https://community.appinventor.mit.edu/uploads/default/original/2X/0/0c48ececab7160e2ddf616ca66e4ee0590c78d04.png)
![plus](https://community.appinventor.mit.edu/uploads/default/original/2X/8/852448cb2cd13cd82f5109b817f9e68a594b91f8.png)
![sum](https://community.appinventor.mit.edu/uploads/default/original/2X/7/79cfd2080e79d9fe77dcc42f1e532b614b40b4fd.png)
![when btnPlus Click](https://community.appinventor.mit.edu/uploads/default/original/2X/e/ec82a1a0e20ae9b90173b6797e06b2612c4901da.png)
![when ListView1 AfterPicking](https://community.appinventor.mit.edu/uploads/default/original/2X/8/880043157532c7ef5878b6f9da35698ca44e18b2.png)
![when txbInput LostFocus](https://community.appinventor.mit.edu/uploads/default/original/2X/3/37c4c31ac07dc7bc4269fd5156878935aecaaab1.png)
1 Like
I need to calculate the total in the label, can you help me? thank you
This is my application.
textlabel.aia (2.5 KB)
very simply: