RosettaCodeData/Task/Flow-control-structures/PureBasic/flow-control-structures-4.purebasic
Ingy döt Net d066446780 langs a-z
2013-04-10 22:43:41 -07:00

11 lines
190 B
Text

OnErrorGoto(?MyExitHandler)
X=1: Y=0
z= X/Y
; = a illegal division with zero
Debug "This line should never be reached"
End
MyExitHandler:
MessageRequester("Error", ErrorMessage())
End