Hi Bplus
at first thanks for testing an feedback
about
you have a good eyesight!
It is a fake (or Dummy) condition to test because it never change so the WHILE...WEND is infinite
I learned it from a good coder that use as Nickname in this forum of Bplus and he sometimes loves to use
Thinking over you are right it is more correct to use
About results of output:
Sincerely yesterday night it was too late to try to answer, so I made another test to my code and it run fine, so that I decided to do a step by step screenshot... thinking that you were kidding
here are screenshots
But today, robbing some time to my appointments, I have run again the code to choose one screenshot explicative
and SURPRICE I've got the same messing no sense output!
With just a bit of disappointment I have thinking about issue:
yesterday I noticed that sometime routine missed the input key, and as you see from comment to my code I suggest to be quickly in press and release the spacebar or to increase the time of delay from 2 to 3 or 4 seconds.
Looking at main loop I rem out the inkey$="" condition of inner While, and my memory have said me that in speed concurrency the result of INKEY$ can change between 2 statements. So I save result of Inkey$ and I slow the 2 While loop.
And TADA! All work good with no glith of input.