AMOSi:Trap

From Amiga Coding
Revision as of 02:45, 17 November 2007 by Spellcoder (talk | contribs) (Extracted from the AMOSPro V2.00 helpfile)
Jump to: navigation, search

an example can be found on AMOSPro_Tutorial:Tutorials/Error_Handling_2.AMOS


TRAP executes a single instruction, and traps any errors which occur. If a problem crops up during this instruction, your program will continue as normal. You can now find the number of the error using =ERRTRAP


Trap Normal_Instruction