Advertisement
Guest User

Untitled

a guest
Dec 12th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. ' Gambas class file
  2.  
  3. Public Sub _new()
  4.  
  5. End
  6.  
  7. Public Sub Form_Open()
  8.  
  9. End
  10.  
  11. Public Sub Button2_Click()
  12. Dim a As Integer
  13. Dim b As Integer
  14. a = 10
  15. b = SpinBox1.Value
  16. Try Print a / b
  17. Print "Try was working"
  18. If Error Then
  19. Print "If Error is working"
  20. Message.Error("CLASS:" & Str(Error.Class) & ",Code:" & Error.Code & "," & Error.Text & " AT:" & Error.Where, "OK")
  21. Endif
  22. End
  23.  
  24.  
  25. Public Sub Button1_Click()
  26.  
  27. Quit
  28.  
  29. End
  30.  
  31. Public Sub Button3_Click()
  32. Dim a As Integer
  33. Dim b As Integer
  34. a = 10
  35. b = SpinBox1.Value
  36. Print a / b
  37. Catch
  38. Print "Catch is working"
  39. If Error Then
  40. Message.Error("CLASS:" & Str(Error.Class) & ",Code:" & Error.Code & "," & Error.Text & " AT:" & Error.Where, "OK")
  41. Endif
  42.  
  43.  
  44. End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement