Zeppah
Member
I typed in the source code from the Getting Started booklet. When trying to run the program in B4J I get the following:
An error occurred:
(Line: 0) 0
java.lang.Exception: Sub btnevent_mouseclicked signature does not match expected signature.
public static anywheresoftware.b4a.pc.RemoteObject b4j.SecondProgram.main_subs_0._btnevent_mouseclicked() throws java.lang.Exception
class anywheresoftware.b4a.pc.RemoteObject,
Any suggestions?
An error occurred:
(Line: 0) 0
java.lang.Exception: Sub btnevent_mouseclicked signature does not match expected signature.
public static anywheresoftware.b4a.pc.RemoteObject b4j.SecondProgram.main_subs_0._btnevent_mouseclicked() throws java.lang.Exception
class anywheresoftware.b4a.pc.RemoteObject,
Any suggestions?
B4X:
Private Sub btnEvent_MouseClicked
Private btnSender As Button
btnSender = Sender
Select btnSender.Tag
Case "BS"
If lblResult.Text.Length > 0 Then
lblResult.Text = lblResult.Text.SubString2(0, lblResult.Text.Length -1)
End If
Case Else
lblResult.Text = lblResult.Text & btnSender.Text
End Select
If lblResult.Text.Length = 0 Then
btn0.Visible = False
Else
btn0.Visible = True
End If
End Sub
Last edited: