B4J Question MouseClick to move to the next id


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.

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

End If
  End If
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: