Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ON TIMER
#12
(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
Reply


Messages In This Thread
ON TIMER - by zoasterboy - 10-01-2007, 05:49 AM
Re: ON TIMER - by Mac - 10-01-2007, 08:39 AM
Re: ON TIMER - by zoasterboy - 10-24-2007, 10:00 AM
Re: ON TIMER - by Dr_Davenstein - 10-24-2007, 11:18 AM
Re: ON TIMER - by Mac - 10-24-2007, 05:06 PM
Re: ON TIMER - by zoasterboy - 10-24-2007, 06:18 PM
Re: ON TIMER - by Mac - 10-25-2007, 01:57 AM
Re: ON TIMER - by zoasterboy - 10-25-2007, 07:12 AM
Re: ON TIMER - by Mac - 10-07-2007, 06:50 AM
Re: ON TIMER - by wildcard - 10-07-2007, 01:33 PM
Re: ON TIMER - by roy - 10-07-2007, 07:24 PM
Re: ON TIMER - by Mac - 10-08-2007, 10:04 PM
Re: ON TIMER - by Mac - 10-08-2007, 10:13 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)