V vinny Member Licensed User Longtime User Aug 6, 2011 #1 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?
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?
K kickaha Well-Known Member Licensed User Longtime User Aug 6, 2011 #2 Try Sub EditText_FocusChanged (HasFocus As Boolean) ...... ......
V vinny Member Licensed User Longtime User Aug 6, 2011 #3 Tnx kickaha. The name of the textbox is EditText1. Why is the sub EditText_FocusChanged rather than EditText1_FocusChanged ?
Tnx kickaha. The name of the textbox is EditText1. Why is the sub EditText_FocusChanged rather than EditText1_FocusChanged ?
klaus Expert Licensed User Longtime User Aug 7, 2011 #4 You are missing (HasFocus As Boolean) at the end of the line ! It should be: Sub EditText1_FocusChanged (HasFocus As Boolean) Best regards.
You are missing (HasFocus As Boolean) at the end of the line ! It should be: Sub EditText1_FocusChanged (HasFocus As Boolean) Best regards.
K kickaha Well-Known Member Licensed User Longtime User Aug 7, 2011 #5 vinny said: Tnx kickaha. The name of the textbox is EditText1. Why is the sub EditText_FocusChanged rather than EditText1_FocusChanged ? Click to expand... It should be EditText1.FocusChanged , I mistyped it. It is the end part that is needed, as Klaus said.
vinny said: Tnx kickaha. The name of the textbox is EditText1. Why is the sub EditText_FocusChanged rather than EditText1_FocusChanged ? Click to expand... It should be EditText1.FocusChanged , I mistyped it. It is the end part that is needed, as Klaus said.