Q
Problem solve Get help with specific problems with your technologies, process and projects.

Differences between a trap and an interrupt?

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

SearchWindowsServer

Search400

  • Favorite iSeries cheat sheets

    Here you'll find a collection of valuable cheat sheets gathered from across the iSeries/Search400.com community. These cheat ...

  • HTML cheat sheet

    This is a really cool cheat sheet if you're looking to learn more about HTML. You'll find just about everything you every wanted ...

  • Carol Woodbury: Security

    Carol Woodbury

SearchDataCenter

SearchContentManagement

Close