VARPTR()
Action

Retrieves the memory-address of a variable.

Syntax

var = VARPTR( var2 )

Remarks

var The variable that is assigned with the address of var2.
var2 A variable to retrieve the address from.
See also
PEEK POKE


Example


Dim I As Integer , B1 As Byte
B1 = Varptr(I)

Generated code:
Mov h'23,#h'21