What are the differences between a trap and an interrupt? What is the use of each function?
This brings me back quite a way... Introduction to Computer Science (101). A trap is program logic that you would write to catch, or "trap", and error as it occurs. In the Notes world you would implement a trap with an "On Error" statement inside a LotusScript Agent. Search in Designer Help for "trap" to get all the specifics from the Lotus Notes perspective. An interrupt is an event within a program that suspends normal processing and temporarily diverts the flow of control to some other routine, which is typically refered to as an interrupt handler. The Notes client and Domino server software provides you with several interrupts when interacting with databases, view and documents. Any time you open or save a Notes document you have the option of interrupting the normal/simple save by calling some code such as QueryOpen and QuerySave. You can think of the code you write inside a Form's QueryOpen and QuerySave as an interrupt handler.
Dig Deeper on Domino Resources - Part 3
Related Q&A from Scott Lemieux
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.