Errors And Error Trapping; Doerr,; Errn, - HP F2226A - 48GII Graphic Calculator User Manual

Graphing calculator
Table of Contents

Advertisement

J1 # 1.5 # 0.5 `
['] @GLIS4 `
„°LL @) @ RUN@ @@DBG@
Use @SST↓@ to step into the program and see the detailed operation of each
command.

Errors and error trapping

The functions of the PRG/ERROR sub-menu provide ways to manipulate errors
in the calculator, and trap errors in programs. The PRG/ERROR sub-menu,
available through „°LL@) E RROR@ , contains the following functions
and sub-menus:
DOERR
This function executes an user-define error, thus causing the calculator to
behave as if that particular error has occurred. The function can take as
argument either an integer number, a binary integer number, an error
message, or the number zero (0). For example, in RPN mode, entering
5` @DOERR, produces the following error message: Error: Memory Clear
If you enter #11h ` @DOERR, produces the following message: Error:
Undefined FPTR Name
If you enter "TRY AGAIN" ` @DOERR, produces the following message: TRY
AGAIN
Finally, 0` @DOERR, produces the message: Interrupted
ERRN
This function returns a number representing the most recent error. For
example, if you try 0Y$@ERRN, you get the number #305h. This is the
binary integer representing the error: Infinite Result
Enter parameters 1 1.5 0.5
Enter the program name in level 1
Start the debugger.
Page 21-64

Advertisement

Table of Contents
loading

This manual is also suitable for:

48gii

Table of Contents