5 posts • Page 1 of 1
Look at WAIT command.
Unless specified otherwise my response is based on the latest and fully updated RPi OS Bullseye w/ Desktop OS.
Thanks for the reply. I had looked at the keywords on the BBC Basic page and did not see WAIT. But it does work.
A statement causing the program to pause for the specified number of centiseconds (hundredths of a second).
This causes the program to pause for approximately one second.
WAIT 0 results in only a short pause (typically about 1 millisecond), but does give other programs an opportunity to run; it can be useful in preventing your program consuming 100% of the processor's time.
WAIT without a parameter does nothing; it is provided for compatibility with Acorn's BASIC 5 (in which it waits for the next vertical-retrace event).
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.
You were possibly looking at the 'generic' BBC BASIC landing page, which doesn't include WAIT in its list of keywords, but it's in the more detailed manual pages for BBC BASIC for Windows and BBC BASIC for SDL 2.0.