Multiple Buttons: When button.clicked

I have about 60 Buttons i have to loop through. How can i shorten the following Code?

Strange block colour scheme, which variant of AI2 is that ?

Anyway:

image

Its the standard :smiley:
Well i already know your recommendation, but that doesnt help me further, because my problem is about the "when .....Button.click" - i havent found a
"
when Button.Click
of Component
" - Block

image

http://ai2.appinventor.mit.edu/reference/other/any-component-blocks.html

Thx, i just didnt understand the anyButton event but now i do.
Solution:
grafik

The notAlreadyHandled value lets you add other button Click events like btnQuit, that you want to handle differently.

So your any Button.Click event would read
if notAlreadyHandled then
set Button.Text of component to ...

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