ENDTRY
Terminates the TRY…CATCH…FINALLY procedure.
ENDTRY
Remarks
An ENDTRY routine must begin with a TRY.
Example
BEGSR TryCatch access(*public)
Dclfld myFld Type(System.Windows.Forms.Button)
Dclfld myInt *integer 4 **TRY**
myFld.Show()
myInt = myInt / 0
CATCH name( z ) type( System.DivideByZeroException )
msgbox msg( "by 0" ) Title( z.Message )
CATCH name( e ) type( System.Exception )
msgbox msg( "You can't do that!!!" ) Title( e.Message )
FINALLY
msgbox msg( "wow, this works...")
**ENDTRY**
msgbox "All is well!"
ENDSR