Java Error

vinny

Member
Licensed User
Longtime User
I'm not sure if this is the right place to post this but,

Here is my code:

Sub EditText1_FocusChanged
If EditText1.Text = "Type your message here" Then
EditText1.Text = ""
End If
End Sub

When I run it I get this:
Error Occured
An error has occured in sub:
java.lang.Exception:Sub
edittext1_focuschanged
signature does not match
expected signature
Continue?
 

kickaha

Well-Known Member
Licensed User
Longtime User
Try

Sub EditText_FocusChanged (HasFocus As Boolean)
......
......
 

vinny

Member
Licensed User
Longtime User
Tnx kickaha. The name of the textbox is EditText1. Why is the sub EditText_FocusChanged rather than EditText1_FocusChanged ?
 

kickaha

Well-Known Member
Licensed User
Longtime User
Tnx kickaha. The name of the textbox is EditText1. Why is the sub EditText_FocusChanged rather than EditText1_FocusChanged ?

It should be EditText1.FocusChanged , I mistyped it. It is the end part that is needed, as Klaus said.
 
Top