iOS Question Can multiple buttons launch the same event subroutine

DickD

Active Member
Licensed User
I have created a layout with buttons named B1, B2, B3 etc. All of them have the save event name BTest. Each has a different tag.

I have created a subroutine BTest_click. Shouldn't clicking any of these buttons launch that subroutine? They don't. Nothing happens. Can this work?

B4X:
Dim B1, B2, B3 as button
...
Sub BTest_click (tag as string)
log("Button pushed: " & tag)
End sub
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…