Android Question array of buttons

FrankDev

Active Member
Licensed User
Longtime User
Hi

I have an array of buttons

Dim ButtonArray () As Button
ButtonArray = Array As Button (button1, Button2, Button3, Button4, Button5)


when the Action sub of all buttons is.;

sub btnClick_Click

Dim btn As Button
btn = Transmitter....

'how to get the name of the Button who triggered the event??

end sub

regards frank
 

FrankDev

Active Member
Licensed User
Longtime User
hello

Thanks for the support. I hadn't found a name for the button either.
Actually unusual since I can read the tag content of the used button.
Okay. I have to solve this with a map in the tag element.

regards Frank
 
Upvote 0

Emme Developer

Well-Known Member
Licensed User
Longtime User
hello

Thanks for the support. I hadn't found a name for the button either.
Actually unusual since I can read the tag content of the used button.
Okay. I have to solve this with a map in the tag element.

regards Frank
You can't get the name of a view. You should (as you said) use the tag if you really need it
 
Upvote 0
Top