home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!spool.mu.edu!sdd.hp.com!hpscit.sc.hp.com!cupnews0.cup.hp.com!news1.boi.hp.com!hp-pcd!hpcvra!rnews!hpcvbbs!akcs.joehorn
- From: akcs.joehorn@hpcvbbs.cv.hp.com (Joseph K. Horn)
- Newsgroups: comp.sys.hp48
- Subject: Re: ATTN
- Message-ID: <2b57c974.2670.1comp.sys.hp48.1@hpcvbbs.cv.hp.com>
- Date: 16 Jan 93 08:40:03 GMT
- References: <1993Jan14.082021.26676@henson.cc.wwu.edu>
- Lines: 23
-
- n9244414@henson.cc.wwu.edu [<<<<Maho-tsukai>>>> aka Alex Peachey]
- writes:
-
- > I made a program many months ago and one of its features was that
- > the ON key was disabled so you couldn't use it to break out of the
- > program. Since then I have lost the program and since I didn't need
- > to do this often I have forgotten the procedure. So could someone
- > please clue me in as to how to do this?
-
- Embed your code in a IFERR structure. Pressing ATTN will then be
- treated as an error, and it'll be trapped so that you can handle it
- however you wish, including (although not recommended) jumping right
- back into the IFERR structure.
-
- The built-in IFERR can be broken out of by repeated presses of the
- ATTN key. So Bill Wickes wrote a beefier version of IFERR and posted
- it as a library two years ago. It's available as IFERR.LIB on Goodies
- Disk #3, and no doubt at seq.uncwil.edu also. This library makes the
- IFERR structure bulletproof.
-
- -Joseph K. Horn- -Peripheral Vision, Ltd.-
- akcs.joehorn@hpcvbbs.cv.hp.com
- Disclaimer: I don't work for HP, EduCALC, or anybody else.
-