B4J Question MouseClick to move to the next id

giga

Well-Known Member
Licensed User
I would like to move to the next id via the same button. I am using sender but it is not working how I need it or maybe I don't understand it.


B4X:
testbtn = Sender
    If EventData.ClickCount = 1 Then
    Log("record  :" & id(1))
     Else
     If EventData.ClickCount = 2 Then
    Log("record  :" & id(2))

End If
  End If
Next
One click gets me id(1) then two clicks gets me id(2)

But I would like one click to move to each id (one click at a time from the same button.)


Thanks for any advice as always.
 
Last edited:
Top