Q

Differences between a trap and an interrupt?

This Content Component encountered an error

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.

This was first published in December 2002

Dig deeper on Domino Resources - Part 3

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchWinIT

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchEnterpriseLinux

SearchVirtualDataCentre.co.UK

Close