@database "INTERRUPTOPTS.guide"
@width 80

## © M A Sewell `94
##
##  ArCo AmigaGuide® documentation.
##

##
## interruptopts requestor
##
@node main "Interrupt options requestor help"

 The INTERRUPT Requestor allows you to specify which interrupt options
 you wish to include in the compiled file.

 *DON'T FORGET that these options will cause the execution process to
 jump to a procedure of the same name, i.e.

 Should you enable the interrupt option and then enable `Error', An error
 encountered during the execution of your program will cause execution
 control to be passed to a procedure named

 	ERROR:


 An example would be:

 	ERROR:
 		ADDRESS 'ARCO'
 		CR = '0A'X
 		REQUEST 'Error detected' | CR | 'Script failed!!'
 		exit 10


 If you were using I/O routines on a couple of file, You wouldn't want the
 user interrupting the program with a Control `C' break in case you hadn't
 closed the files.

 e.g.

 	signal ON BREAK_C	/* if a break_c is recieved from User */

	 normal processing
 		opening of files etc.
	 	copying routine or writing etc.
	 	end of file
	 	Close files.
	 exit

	 BREAK_C:
	 	Close files
	 	SAY '***BREAK DETECTED***'
	 	exit 10



 You can clear any previous setup that you may have had using the Clear
 button at the bottom, ( Keyboard shortcut is DELETE )

 You can Cancel the requestor, reverting back to the previous settings
 by clicking on the Cancel button at the bottom ( Keyboard shortcut is the
 ESCAPE key )

 To use the settings you have chosen, Click on the OK button at the bottom
 ( Or use the Keyboard shortcut key which is `O' )


@endnode

