SecondBASIC Documentation v3

Home / Function Reference / VarPtr&()

VarPtr&()

Description: Returns the memory address of a variable.

Syntax:

VarPtr&(<variable>)

Part Description
<variable> Required. The variable that you want to get the memory address of.

Example:

        Dim a As Integer, b& As Long, c& As Long
        b& = VarPtr&(a)
        Print b&
        Print VarPtr&(b&)
        Print VarPtr&(c&)