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 ?



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


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

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.