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►