In the small piece of code below, the Debug is only displayed at the end of the execution whereas it should be displayed every second. Does anyone know why?
Thanks in advance.
Procedure Wait(milliseconds)
Start = ElapsedMilliseconds()
Repeat
delay = (ElapsedMilliseconds()-Start)
Until (delay > milliseconds)
EndProcedure
For x = 1 To 5
Debug Str(x); Only displayed at the end of 5 iterations... Why? (While it works very well in Purebasic)
Wait(1000)
Next x
munfraid wrote: Thu Apr 11, 2024 7:53 pm
In SB use timers instead.
Okay, but in this case, how to make a Timer that only executes once to have the equivalent of Wait(1000) for example? There is RemoveWindowTimer(#Window, Timer), but how to be sure that the next Timer will not be executed before the first one is terminated.Thanks.