Post Reply 
How to simulate system error msgs on 48?
06-27-2014, 02:28 AM
Post: #2
RE: How to simulate system error msgs on 48?
(06-26-2014 05:24 PM)HP67 Wrote:  I know how to display the text across the top two display lines and make it look just like the real thing with DOERR. I also know I can set the error message number with DOERR. What I have not figured out is how to do both, short of a really hideous kludge.

Can you explain a bit more about what you're trying to do? It appears from the documentation for DOERR (and some verification testing) that it sets both the error number and the appropriate message when provided with a valid error number.

Here's a sample that shows both the number and message being set when only the error number is supplied:
Code:
\<<
  ERR0            @ Clear out any previous errors
  ERRN ERRM       @ Recall current error number and message
  IFERR           @ Trap the following error so that program doesn't stop
    #203h DOERR   @ Trigger error #203h - Bad Argument Value
  THEN
  END
  ERRN ERRM       @ Recall current error number and message
  OVER DOERR      @ Force the error to display
\>>

Are you trying to generate errors that aren't predefined, but want to use something other than #70000h for the number? It's not clear based on your description. If that's the case, you would probably need to use SYSEVALs to store the number/message and trigger the error since it doesn't appear that there are any standard UserRPL commands for those purposes.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: How to simulate system error msgs on 48? - DavidM - 06-27-2014 02:28 AM



User(s) browsing this thread: 1 Guest(s)