PAUSE

Purpose: Pauses script execution and waits for a user response.

Format:   PAUSE     textstring

Notes:     The  PAUSE  statement will display a message box and suspend program execution until the user clicks on the OK button.  Clicking on the  CANCEL  button will allow the user to exit the script.  textstring  may consist of combinations of text and variables to be printed in the message box. Text must be enclosed in quotes and  must  be separated from variables by spaces.

Example:

print " This script displays the ascending powers"
print " of 2 every time you select OK until "
print " you select CANCEL"

accum = 1

*MAIN

accum = accum * 2

pause "The next power of 2 is: " accum

goto main
exit

See Also:  ASK