Why a TextDialog triggered before a delay will be shown after delay end?

Hi Community.
Made a Delay an playing around with it.
Why the First Message (Debug1) will shown at last, after the delay is expired?
Put it also in the Button.click element bevor calling the Process delay. The same result.

Your delay will not work like that. Use a clock timer event to start the delay then run the items you want after the delay.

Also see here:

The model of event processing in App Inventor by Lyn
Please Wait method by Scott


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

thank you for the hint. Ich will take a look.

oh. No, that was a misstake.
But ... both Messages will appear after the DelayTime is expiered. And the firts Message is coverd from the second.

Thank you for the hint. I will take a look.