Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ON TIMER
#11
Ah I figured out the problem, the new forums default setting for E-mail notification is to not send any unless you specifically choose the post you want to watch. It's easy to change, just hit the check box that says to send Email for topics you have started and posted in (Located in your profile settings > Notification and Email).

And the code works great for my program, one question, what is the purpose of "SYSTEM" on line 5? I've never seen that before.

Until now I was using SLEEP in the place of the ON TIMER function hah, it wasnt working so well.

Thanks!
-yah
Reply
#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
#13
Ah ok that makes sense, SYSTEM returns to the "system" that called it, and END, like always, just ends.

That could come in handy actually, for a DOS based game console the computer club at my school is building.

Thanks for the help! when I get it running, I'll post up the code for the DDR (no dancing yet, just drumming)  program and instructions for building the keyboad based controler.
-yah
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)