bas7qck.hlp (Table of Contents; 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, VARSEG Functions
  ◄Syntax►  ◄Details►  ◄Example►                 ◄Contents►  ◄Index►  ◄Back►
──────────────────────────────────────────────────────────────────────────────
VARPTR(variablename)
VARSEG(variablename)
 
    ■ variablename    Any BASIC variable, including a record variable
                      or record element.
Returns
    Variable type  VARSEG returns                VARPTR returns
    ════════════   ═══════════════════════════   ════════════════════════════
    ■ Numeric      ■ Segment address of variable ■ Offset address of variable
    ■ String       ■ Segment address of string   ■ Offset address of string
                     descriptor                    descriptor
    ■ Name not     ■ Segment address of new      ■ Offset address of new
      previously     variable (VARSEG also         variable (VARPTR also
      defined        creates the new variable)     creates the new variable)
 
See Also    ◄VARPTR$►    ◄DEF SEG►    ◄PEEK►    ◄POKE►    ◄SADD►
            ◄SSEGADD►