Errors and error trapping, Doerr, Errors and error trapping ,21-64 – HP 50g Graphing Calculator User Manual
Page 711: Doerr ,21-64
Page 21-64
and store it in variable
@GLIS4.
Θ Check out that the program call 0.5 ` 2.5 ` 0.5 ` @GLIS4
produces the list {0.5 1. 1.5 2. 2.5}.
Θ To see step-by-step operation use the program DBUG for a short list, for
example:
J
1 # 1.5 # 0.5 `
Enter parameters 1 1.5 0.5
[‘]
@GLIS4 `
Enter the program name in level 1
„°LL
@)@RUN@ @@DBG@
Start the debugger.
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
@)ERROR@ , 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