QB64.org Forum
Active Forums => QB64 Discussion => Topic started by: hanness on November 07, 2019, 06:58:14 pm
-
I'm wondering if the fix to the previous problem that I reported a few days ago caused this problem....
The SLEEP command will now always wait for a key to be pressed even if a sleep time is specified. For example, if I issue the command "SLEEP 5", the program will not proceed after 5 seconds. It will wait forever for a key press.
Tested on the October 30 Development Build
Sample code:
_______________
$CONSOLE:ONLY
_DEST _CONSOLE: _SOURCE _CONSOLE
PRINT "This is a test. The program should continue in 5 seconds."
SLEEP 5
PRINT "We should reach this point 5 seconds after the first message but that does not happen."
END
_______________
-
I just forgot to code in for the timer event. I don’t usually SLEEP time, so I completely overlooked it. I’ll add the functionality there in the next few days or so. Thanks for bringing it to my attention.
-
Thanks, Steve. Much appreciated.