In b4a,
In html loaded into webview,
Obviously, button "cmd01" runs well but button "cmd02" crashes my app.
Question is: how do I capture the exception in b4a when "cmd02" CallSub, so I could stop my app from drop dead?
b4a code:
...
wve.addJavascriptInterface(wv_home, "b4a")
...
Sub test1 (argp1 As String, argp2 As String, argp3 As String)
End Sub
In html loaded into webview,
javascript:
...
<button onclick='b4a.CallSub("test1", true, "p1", "p2", "p3");'>cmd01</button>
<button onclick='b4a.CallSub("test1", true, "p1");'>cmd02</button>
...
Obviously, button "cmd01" runs well but button "cmd02" crashes my app.
Question is: how do I capture the exception in b4a when "cmd02" CallSub, so I could stop my app from drop dead?