Control Structures
These are examples of control structures. You may also be interested in:

 Conditional structures
 Exceptions
 Flow-control structures
 Loops

This task is to give an example of an exception handling routine
and to "throw" a new exception.



Related task

   Exceptions Through Nested Calls


Public Sub Main()
Dim iInteger As Integer
 
MakeError
DivError
 
iInteger = "2.54"
 
Catch
  Print Error.Text
 
End
'______________________
Public Sub DivError()
 
Print 10 / 0
 
Catch
  Print Error.Text
 
End
'______________________
Public Sub MakeError()
 
Error.Raise("My Error")
 
Catch
  Print Error.Text
 
End