Directives 

RESET

Reset Program State

Format

RESET

Description

The RESET directive does the following:

1.

Resets PRECISION to the default value of 2.

2.

Sets ERR, RET and CTL to zero.

3.

Clears FOR/NEXT, GOSUB/RETURN stack.

4.

Re-enables rounding mode.

The RESET directive will reset FLOATINGPOINT to standard decimal notation, and if the system parameter 'RR' is set, the system will also perform a reset on a RUN directive. (added in PxPlus v4.20)

Note:
Use the POP * directive to clear the complete GOSUB/FOR stack without changing the CTL and ERR values.

See Also

BEGIN Reset Files and Variables
CLEAR Reset Variables
START Restart Session
RUN Transfer and Execute a Program
'RR' Reset on RUN
FLOATINGPOINT Switch to Scientific Notation
POP Premature Exit from Stack