VARPTR returns the address of the specified variable.
A = VARPTR(variable)
100 PRINT VARPTR(B)
This will display the address of variable ‘B’.
VARPTR will only search RAM page R0.