Futurebasic/Language/Reference/varptr

Syntax
address&amp; = VARPTR({var|FN userFunction}) address&amp; = @var

Description
returns the memory address where the first byte of the variable  is located. You can use this value as a "pointer" to. If  is a local variable inside a local function, the value returned by   may be different each time you execute the function, and is not valid after the function exits. The syntax  is just a shorthand version of.

is identical to the  function.

Example
You cannot use  with variables that use register storage, because such variables do not have addresses. See the  statement and the  statements to learn how to prevent a variable from using register storage.

Because the " " symbol has a special meaning when it appears after the  or   keyword, you cannot use the  syntax as the first item in a list of print items.

PRINT @myVar#'This does not work (&quot;@&quot; is misinterpreted) PRINT (@myVar#)'This works. PRINT VARPTR(myVar#)'This works too.