advr.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
PLAY Statement (Music) Details
  Summary  Details  Example                Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
 PLAY commandstring$
 
 Usage Notes
   ■ The PLAY statement uses a concept similar to DRAW in that it embeds a
     music macro language in one statement - that is, a set of commands, used
     as part of the PLAY statement, specifies a particular action.
     See: DRAW Statement
 
   ■ To execute a PLAY command substring from a PLAY command string, use the
     "X" substring command:
 
         PLAY "X"+ VARPTR$(commandstring$)
 
         Substring               Action
         ═════════════════════   ═══════════════════════════════════════════
         "X" + VARPTR$(string)   Executes a substring
 
     See: "X", Substring Command
 
   ■ In Visual Basic programs, use the VARPTR$(variablename) form for
     variables. For example:
 
         PLAY "X" + VARPTR$(A$)
         PLAY "O=" + VARPTR$(I)
 
   See: VARPTR$ Function