* *
*
* * News
 • Daily news
 • Archived news

Columns
 • WildCard
 • Qbasic Articles
 • QB Comic!

Learning center
 • QB Books
 • Qbasic Lessons!
 • Qbasic FAQ
 • Newbies Section
 • Qbasic Tutorials

* *
*
*
*
*  
.ON PLAY(n) Statement Details.

  QuickSCREEN      Details      Example      Contents      Index
ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
ON PLAY(n) Statement Details
 
Syntax
  ON PLAY(queuelimit) GOSUB {linelabel | linenumber}
 
The following three rules apply to the use of ON PLAY:
 
  1. A play event trap occurs only when music is playing in the
     background. Play event traps do not occur when music is running
     in the foreground.
 
  2. A play event trap does not occur if the background music queue
     has already gone from having queuelimit to queuelimit -1
     notes when a PLAY ON is executed.
 
  3. If queuelimit is a large number, event traps may occur often
     enough to slow down the program.
* * ** * * * *