Adding an automatic zero in the text box when the number is odd, for example (6) automatically turns into (06) and so on

Possible help: How to add an automatic zero number in the Text Box when the number is odd, for example (6) it automatically turns into (06) and so on

You want after clicking the button or while typing time itself you want it??

If you want after clicking the button mean, just use this block in button click

If not contains text (text box text ÷2) piece (.)
Set text box text to join (0+text box text)

One way is

image

2 Likes

Another way provided by @Taifun How to get leading zeros in App Inventor

2 Likes

Number 6 was an example. The number will be entered by the user in the text box
The result will be according to the number entered.

Try this

2 Likes

Ok I will give it a try and thanks in advance

1 Like