219
Chapter 11: Programming Features
• Press
@
z
H
E
A
0
2
to
display “x
_
”onthescreen.
• Press
E
to obtain
theaveragevalueofXas
determined in the previous
calculation.
• Inthisway,thecontentsofanimmediatelyprecedingstatistical
calculation can be stored as statistical values.
• Thesecontentsremainvaliduntilthenextstatisticalcalculationis
executed, even if the power is turned off.
• Thesameistrueevenforregressioncalculationsandverication
calculations.
8. Debugging
Afterprogramming,itisrequiredtodebugtheprogram.
1. Press
P
A
and select the program to debug.
If any bugs are present, error messages will appear.
The following example indicates that the same label name has
been used two or more times.
2. Press
;
or
'
to
display the line where the
error exists and correct the
mistake.
Execution can be interrupted by pressing
O
.
Usethiscommandiftheprogramentersaninniteloop.Press
;
or
'
to display the program source with the cursor on
the line where interrupted.
*RefertoAppendix4“ErrorCodesandErrorMessages”onpage
235.
*Itishighlyrecommendedthatgoto-Labelstatementsarenot
usedinIf,WhileandForloopstructures.
* Multiple statements cannot be used in a command line such as
Else,EndIf,Next,WhileandWEnd.Itisrecommendednottouse
multiple statements.
When an infinite
loop occurs