I would like to ask the community if the App Inventor programming language understands the 'concept' of Assign. Let me explain: I have an application with 24 buttons, and for each of them I have to set the relative text with a string. Currently I am forced to repeat 24 times the same part of code, in which ONLY the number of the button varies. It would be very useful to be able to 'assign' each button to a variable X, and therefore use only ONE code for all the buttons, using the Variable X.
Do you need the name of the button or do you need the text of the button which was pressed?
Fot the latter, there is an advanced get text of button component block available
I need the Name of button, not the Text.
The AnyButton command snaps to all buttons, while I need to snap only to SOME buttons, so I need their Name (this is because the text of the buttons is not fixed).
thanks
Corrado