The order of commands in the body of an event handler

https://appinventor.mit.edu/explore/understanding-blocks

In this page it says:

When this stack of commands is placed in the body of an event handler (e.g., the when.Button1.Click event handler), the command will be executed from the top to the bottom.

However when I run the below blocks, the text of Labels should be equal, but they don't.

execution-order

The canvas needs a short amount of time (100-200ms) to "know about itself" when the screen initialises. If you use a clock timer this will work.

Also

  1. Quite an out of date page, using AI1 blocks !
  2. The page doesn't actually show the blocks you show...
1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.