Calculated clock time not showing properly - 9:05 = 9:5

9:05 shows as 9:5
9:00 shows as 9:0 - most of the time.

I don't see a way to format it.
TIA,
Mirth

attached is part of the programming. I tried a formatting (a bit randomly). Also on right is one of the many calculations - just creating a schedule based on elasped times.

This value function will always give you two digits:

Also, start renaming your procedures to identify their purposes.
AI2 does not treat procedures well if they have not yet need renamed.

Thanks, ABG, didn't know about that at all.

Procedures - thanks for the tip - "ProcedureN" isn't enough?

TIA,
Mirt

You are aware that you have two set Time2 text blocks

bild

1 Like

Yes, thank you!
I was trying to call in formatting with the first block, it's gone now.

I was able to resolve it with this - (screenshot)

a "nice" example of a cumbersome solution, which needs a lot of blocks
I'm wondering, what exactly prevents you from using @ABG 's elegant solution

unknown

Taifun

Ah, thank you Taifun!
I needed that second block of code to understand it.
I didn't know about secondary inputs yet.

I'm very new at this and self-taught (yes, I know, that means I have a fool for a student). I appreciate your help!

  • Mirth

A very good way to learn App Inventor or Kodular is to read the free Inventor's Manual here in the AI2 free online eBook App Inventor 2 Book: Create Your Own Android Apps ... the links are at the bottom of the Web page. The book 'teaches' users how to program with AI2 blocks.
There is a free programming course here Course In A Box and the aia files for the projects in the book are here: App Inventor 2 Book: Create Your Own Android Apps
How to do a lot of basic things with App Inventor are described here: How do you...? .

Also do the tutorials Our Tutorials! to learn the basics of App Inventor, then try something and follow the Top 5 Tips: How to learn App Inventor

Taifun