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.
VARPTR$ Function Details
  ◄Syntax►  ◄Details►  ◄Example►                 ◄Contents►  ◄Index►  ◄Back►
──────────────────────────────────────────────────────────────────────────────
VARPTR$ returns a string representation of a variable's address for use
in DRAW and PLAY statements.
 
VARPTR$(variablename)
    ■ If variablename is an array element, the dimensions for the array
      must be specified before VARPTR$ is used. The array must consist
      of variable-length strings.
 
Important
    ■ To guarantee correct results, use the value returned by VARPTR$
      immediately after invoking the function.
 
Differences from BASICA
    ■ In this version of BASIC, VARPTR$ must be used in the DRAW and PLAY
      statements to execute substrings containing variables.
    ■ BASICA supports both the VARPTR$ syntax and the syntax containing
      just the variable name.