bas7advr.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
  Syntax  Details  Example                 Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
The PLAY statement plays music as specified by a string.
 
PLAY commandstring$
 
    ■ commandstring$     A string expression that contains one or more of
                         the music commands.
 
Usage Notes
    ■ The PLAY statement uses a concept similar to DRAW in that it embeds
      a music macro language in one statement. A set of commands, used as
      part of the PLAY statement, specifies a particular action.
    ■ In Microsoft BASIC programs, you should use the VARPTR$(variablename)
      form for variables. For example, these BASICA statements:
 
        PLAY "XA$"
        PLAY "O = I"
 
      should be written like this in Microsoft BASIC:
 
        PLAY "X" + VARPTR$(A$)
        PLAY "O=" + VARPTR$(I)