What's with "RUN" and "CLS"?
#3
Or, for an added thought exercise, let's take a look at what's going on with the code:

Screen 1
Print "ABC"
Print "DEF"
_Delay 1
Print "XXX"
_Delay 1
Cls
Run   <--- at this point, we start over again.  Right?


So isn't our code actually something like:

Code: (Select All)
Screen 1
Print "ABC"
Print "DEF"
_Delay 1
Print "XXX"
_Delay 1
Cls
Screen 1
Print "ABC"
Print "DEF"
_Delay 1
Print "XXX"
_Delay 1
Cls
Screen 1
Print "ABC"
Print "DEF"
_Delay 1
Print "XXX"
_Delay 1
Cls
Screen 1
Print "ABC"
Print "DEF"
_Delay 1
Print "XXX"
_Delay 1
Cls
Screen 1
Print "ABC"
Print "DEF"
_Delay 1
Print "XXX"
_Delay 1
Cls
....



Make the issue a little more obvious now?
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)