Create a new app

Our example uses the 'Phone size'

Create a new Component

Rename the component like this

Add a Text Label, Button, and Text Input, like this:

I've changed the background color and made the form smaller

Changed these properties on the text input

Rename the label to lblTotal
Set the label Text property to
"Total: " & RunningTotal
Add this formula to the button OnSelect
Set(RunningTotal,RunningTotal + txtNumberToAdd.Text); lblTotal.Text = "Total " & RunningTotal;
RunningTotal is a global variable, txtNumberToAdd is our text box, lblTotal is our label
Last, set the form OnReset to
Reset(txtNumberToAdd);
This will clear the txtNumberToAdd text box
Add a new Screen

Insert our component on the new screen. The easiest way to find it is to use the search functionality

Add a second screen, name it 'Menu', add this button

Set the button's OnSelect like this
Navigate(CalcForm)
Add a 'back' button to the Calculator form, set its OnSelect
Back()
Test the screen