Explanation
SLEEP Statement
Suspends program execution.Worth knowing
Useful and cross-version information about the programming environments of QBasic, QuickBasic and Visual Basic for DOS.
Useful and cross-version information about the programming environments of QBasic, QuickBasic and Visual Basic for DOS.
SLEEP [seconds&] |
seconds& | Number of seconds to suspend the program. |
If seconds& is 0 or is omitted, the program is suspended until a key is pressed or a trapped event occurs. |
PRINT "Taking a 10-second nap..."
SLEEP 10
PRINT "Wake up!"
See also: | WAIT |