Returns a string representation of a variable’s offset for use in the PLAY and DRAW statements.
VARPTR$
(string_variable)
string_variable is a string variable containing DRAW or PLAY commands.
QBasic does not guarantee that a variable will reside in the same memory location throughout the program execution. Use VARPTR$
immediately before any code that uses the address.
scale$ = "CDEFGAB
PLAY "X" + VARPTR$(scale$)