PAUSE

Synopsis
PAUSE
Description

Command or operation that enters an interactive pause. The user is prompted for instructions with a dialog box that includes the name of the procedure in which PAUSE was invoked. Local variables of that procedure are available during the pause. If the pause is ended by a CONTINUE instruction, then PAUSE outputs whatever the input to CONTINUE was.

If the variable ERRACT exists and an error condition occurs, then the contents of that variable are run as an instruction list. Typically ERRACT is given the value [PAUSE] so that an interactive pause mode is entered in the event of an error. This allows the user to check values of local variables at the time of the error.

Example

TO MYPROGRAM
  REPEAT 180 [RIGHT 2 IF 90=REPCOUNT [PAUSE]]
  PRINT "Done
END

MYPROGRAM
Pausing...MYPROGRAM

Enter SHOW HEADING in Pause Mode dialog box and hit OK.

180

Enter CONTINUE in Pause Box and hit OK.

Done


SourceForge.net Logo