Using anybutton, how to get the name

How to obtain the name of a button dynamically?

Is this what you mean?