home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / hp48 / 7445 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.4 KB

  1. 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
  2. From: akcs.joehorn@hpcvbbs.cv.hp.com (Joseph K. Horn)
  3. Newsgroups: comp.sys.hp48
  4. Subject: Re: ATTN
  5. Message-ID: <2b57c974.2670.1comp.sys.hp48.1@hpcvbbs.cv.hp.com>
  6. Date: 16 Jan 93 08:40:03 GMT
  7. References: <1993Jan14.082021.26676@henson.cc.wwu.edu>
  8. Lines: 23
  9.  
  10. n9244414@henson.cc.wwu.edu [<<<<Maho-tsukai>>>> aka Alex Peachey]
  11. writes:
  12.  
  13. > I made a program many months ago and one of its features was that
  14. > the ON key was disabled so you couldn't use it to break out of the
  15. > program. Since then I have lost the program and since I didn't need
  16. > to do this often I have forgotten the procedure.  So could someone
  17. > please clue me in as to how to do this?
  18.  
  19. Embed your code in a IFERR structure.  Pressing ATTN will then be
  20. treated as an error, and it'll be trapped so that you can handle it
  21. however you wish, including (although not recommended) jumping right
  22. back into the IFERR structure.
  23.  
  24. The built-in IFERR can be broken out of by repeated presses of the
  25. ATTN key.  So Bill Wickes wrote a beefier version of IFERR and posted
  26. it as a library two years ago.  It's available as IFERR.LIB on Goodies
  27. Disk #3, and no doubt at seq.uncwil.edu also.  This library makes the
  28. IFERR structure bulletproof.
  29.  
  30. -Joseph K. Horn-   -Peripheral Vision, Ltd.-
  31. akcs.joehorn@hpcvbbs.cv.hp.com
  32. Disclaimer: I don't work for HP, EduCALC, or anybody else.
  33.