RosettaCodeData/Task/Flow-control-structures/PureBasic/flow-control-structures-4.basic

12 lines
190 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
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