VARPTR

Format

number1 = VARPTR (variable1)

Description

This statement will return the address of a variable variable1 and store it in number1. This may be used to peek and poke values directly into a variable.

Example

A$ = "XYZ"
B = VARPTR(A$)
C = PEEK (B)
PRINT C
After execution of these statements the screen would display the number 88 which is the number for the ASCII character "X".

See Also

  • PEEK
  • POKE