PAUSE

PAUSE N

WAITS FOR N MILLISECONDS, BUT PROGRAM REMAINS ACTIVE

  • Type: Command
  • Parameter: 1
  • Group: System

ACTION

The command PAUSE N freezes the program execution for N milliseconds. The waiting actions are processed.

SYNTAX: PAUSE N

  • N = Number of milliseconds (integer or real). Must be greater than 0 and less than 30000.

USE

  • The command PAUSE is used to display something during a certain time.

ERROR

  • If N is not a correct expression.
  • If N is less than or equal to 0.
  • If N is greater than 30000.

EXAMPLE

dim i

print "display number from 1 to 10 every one second"

for i=1 to 10

print i:pause 1000

next i

SEE ALSO

DISPLAY

WAIT