01-09-2023, 03:13 AM
(This post was last modified: 01-09-2023, 03:16 AM by PhilOfPerth.)
Probably two of the simplest instructions, Run and Cls are confusing the hell out of me!
When I run this code:
Screen 1
Print "ABC"
Print "DEF"
_Delay 1
Print "XXX"
_Delay 1
Cls
Run
I would expect either the Cls, or the Run, to wipe the screen clean. According to Help, Run clears the current programme (and I assume this means its screen as well) but it doesn't!
So, I added the Cls, expecting that this, at least, would clear the screen, but it only cleans down to the first _Delay (or Sleep) line. Why does the text after _Delay not get wiped?
When I run this code:
Screen 1
Print "ABC"
Print "DEF"
_Delay 1
Print "XXX"
_Delay 1
Cls
Run
I would expect either the Cls, or the Run, to wipe the screen clean. According to Help, Run clears the current programme (and I assume this means its screen as well) but it doesn't!
So, I added the Cls, expecting that this, at least, would clear the screen, but it only cleans down to the first _Delay (or Sleep) line. Why does the text after _Delay not get wiped?
Of all the places on Earth, and all the planets in the Universe, I'd rather live here (Perth, W.A.)
Please visit my Website at: http://oldendayskids.blogspot.com/
Please visit my Website at: http://oldendayskids.blogspot.com/