I have a CLV with 4 buttons on each row.
All buttons cal the same sub
What is the appropriate way to define the sub so it works for B4A & B4J
At the moment I have this but feel there is a better way.
All buttons cal the same sub
What is the appropriate way to define the sub so it works for B4A & B4J
At the moment I have this but feel there is a better way.
B4X:
#if b4a
Private Sub iv1_Click
#else B4J
Private Sub iv1_MouseClicked (EventData As MouseEvent)
#end if
Dim tempiv As B4XView = Sender
Main.currentMakeID = tempiv.Tag
B4XPages.ShowPage("model page")
End Sub