B4J Question On Error?

bdunkleysmith

Active Member
Licensed User
Longtime User
Does B4J have the ability to handle an error as is done in Visual Basic? eg:
B4X:
On Error GoTo Handler
    Throw New DivideByZeroException()
Handler:
    If (TypeOf Err.GetException() Is DivideByZeroException) Then
    ' Code for handling the error is entered here.
    End If
 

alienhunter

Active Member
Licensed User
Longtime User
this

Try
If EventData.ClickCount=2 Then
'''''
End If
Catch
' Code for handling the error is entered here.
End Try
 
Upvote 0
Top