WAIT

WAIT N

WAITS FOR N MILLISECONDS

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

ACTION

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

SYNTAX: WAIT N

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

USE

  • The command WAIT 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 second"

for i=1 to 10

print i:wait 1000

next i

SEE ALSO

DISPLAY

PAUSE