next up previous contents index
Next: PAUSE Up: SIC Language Internal Help Previous: NEXT

   
ON

        [SIC\]ON ERROR [Command]

    This command changes the current error recovery action.  By  default,  a
    PAUSE is automatically generated by any error during execution. This can
    be changed and any other valid command line  Command  can  be  activated
    instead  of  PAUSE  when  an  error  occur,  using  the command ON ERROR
    Command. However, options  cannot  be  present  into  the  command  line
    Command.  A  very useful error recovery command for loops is NEXT, which
    enables skipping the remaining commands of the loop when something  went
    wrong, and resumes the loop at for the following index value.

    Note that the ON ERROR command does not affect  the  behaviour  on  <^C>
    trapping,  which  always  returns  a PAUSE. The ON ERROR command is only
    valid within the procedure which declared it.


Gildas manager
2001-04-18