qbasic.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.
VARPTR$ Function
  Contents        Index  Back
──────────────────────────────────────────────────────────────────────────────
Returns a string representation of a variable's address for use in DRAW and
PLAY statements.
 
VARPTR$(commandstring$)
 
    ■ commandstring$    A string variable containing DRAW or PLAY commands.
 
Example:
    Scale$ = "CDEFGAB"
    PLAY "L16"
    FOR i% = 0 TO 6
        PLAY "O" + STR$(i%)
        PLAY "X" + VARPTR$(Scale$)
    NEXT i%
 
See Also   DRAW   PLAY (Music)    VARPTR, VARSEG