PAUSE

Purpose:

Pauses execution of an SPL function.

Syntax:

PAUSE(seconds, mode, keybreak)

seconds

-

A real. Number of seconds to pause.

mode

-

Optional. An integer, background processing mode:

0 :

Do not process background events (default)

1:

Process background events

keybreak

-

Optional. An integer, break on key press:

0 :

Do not break (default)

1:

Break when a key is pressed

Returns:

Nothing.

Example:

echo("Paused ...");pause(10);echo("Done")

 

The "Paused ..." message is displayed on the status bar. All processing is suspended for 10 seconds, then the "Done" message is displayed on the status bar.

Example:

echo("Paused ...");pause(10, 1);echo("Done")

 

Same as above accept background processing is enabled (e.g. the clock continues to tick).

Remarks:

break_on_key requires mode to be set to 1.

 

When used in conjunction with ECHO or PRINTF, PAUSE is helpful for checking intermediate values of variables during execution.

See Also:

ECHO

PRINTF

SPRINTF

WAITKEY