Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What's with "RUN" and "CLS"?
#1
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?  Huh
Of all the places on Earth, and all the planets in the Universe, I'd rather live here (Perth, W.A.) Big Grin
Please visit my Website at: http://oldendayskids.blogspot.com/
Reply


Messages In This Thread
What's with "RUN" and "CLS"? - by PhilOfPerth - 01-09-2023, 03:13 AM
RE: What's with "RUN" and "CLS"? - by SMcNeill - 01-09-2023, 04:15 AM
RE: What's with "RUN" and "CLS"? - by SMcNeill - 01-09-2023, 04:17 AM
RE: What's with "RUN" and "CLS"? - by PhilOfPerth - 01-09-2023, 05:45 AM



Users browsing this thread: 1 Guest(s)