10-25-2007, 01:57 AM
(10-24-2007, 06:18 PM)zoasterboy link Wrote:It's easy to change, just hit the check box that says to send Email for topics you have started and posted in
Thanks for the info!
(10-24-2007, 06:18 PM)zoasterboy link Wrote:what is the purpose of "SYSTEM" on line 5?
Really dumb newbies don't code anything to signify the end of their programs, they just run out of instructions at the bottom of their programs.
More experienced people use END
Experts use SYSTEM.
For compiled programs (QB4.5 or after), there is no difference other than if you are looking for places that a program terminates early, it is sure nice to search for SYSTEM and a pain to search for END.
For programs which are run in QBasic from the IDE, which programs were loaded or have stopped, there is also no difference.
BUT if you have your program stored as a file like this:
MyGame.BAS
and you have this BAT file:
MyGame.BAT
----------
QBasic /run MyGame
Then there is a LOT of difference. If you click on MyGame.BAT then if the program terminates with SYSTEM then it will run just the same as a compiled program, namely not stop and leave the game player staring at the IDE prompt.
Mac