Yes. You are right but I did not mean it.
I will try to explain it more precisely.
I have event which is called automaticaly when new information were received from another device.
The event must know which button was last pressed and forward the information to proper EditText.
In my case Button is something like flag.
I can set a flag in variables According to Cableguy advice and It works
but I think the solution with Sender is better.
Sub Button1_MouseClicked (EventData As MouseEvent)
btn = Sender
Log(btn)
End Sub
In above code I take Sender into btn variable.
I would like to check the variable in Bluetooth event but I do not know how to use btn in IF function.
Should I compare btn with name of Button ?
If btn = here should be name of button to check which buttons were used ?
Regards
Artur