Hello All
I am using multiple EditText Boxes that all fire the same EnterPressed event. I need to identify which specific EditText box fired the event. The code I am using is:
The line "If (Sender is EditText) Then" always returns false. When I test sender with
I get a message that Sender is a null pointer.
How can I correct this and determine the requesting EditText?
regards and thanks
SeaCay
I am using multiple EditText Boxes that all fire the same EnterPressed event. I need to identify which specific EditText box fired the event. The code I am using is:
B4X:
Sub Edit_EnterPressed
Dim edt As EditText
Dim edtTag As Int
If (Sender Is EditText) Then
edt = Sender
edtTag = getViewId(edt.Tag)
B4X:
Dim aView as View
aView = Sender
I get a message that Sender is a null pointer.
How can I correct this and determine the requesting EditText?
regards and thanks
SeaCay