I created an app with many buttons. When I use the "Any Button.Click"-block I distinguish them with different background colours to give them various tasks. When a blue button is pressed, play a sound; when a red button is pressed, copy a word, and so on; whatever, just as an example.
Though the tasks are different, some of the code is repetitive after all. I realised I cannot just put that code into a procedure and call that procedure from within the Any Button. Click block. The components will become orphaned, and those error crosses appear on them.
Is there really no way to avoid repetitive coding within an Any Button. Click block ??