Android Question Get Tag from multiple B4XImageView1?

cenyu

Active Member
Licensed User
Longtime User
I have two B4XImageView1 with diffenet names and tags and equal Event Names - added from designer...
As i sad on every of them i set "Event Name" - to be the same...Let say - ImageView.
My task is to find witch B4XImageView1 user clicked by receiving its tag...

I can't explain this better...Sorry friends.
 

Attachments

  • 1676023067690.png
    11 KB · Views: 83

josejad

Expert
Licensed User
Longtime User

Check the sender object


Sender As Object​

Returns the object that raised the event.
Only valid while inside the event sub.
Example:
B4X:
Sub Button_Click
Dim b As Button
b = Sender
b.Text = "I've been clicked"
End Sub
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…