NAME

varptr$ - character form of the address of a variable

SYNOPSIS

v$ = varptr$(Var)

DESCRIPTION

Varptr$ returns a three byte string that indicates the type and address of the argument variable.  The value of the first byte of the string indicates the type of the variable, as follows:

            Value      Type
2Integer
3String
4Single Precision
8Double Precision

The other two bytes give an offset component of the address of the variable.  The value of the second byte is the low order byte of the offset and the value of the third byte is the high order byte of the offset.  In 16-bit implementations of Basmark QuickBASIC this offset is equivalent to the variable address.  In 32-bit implementations, the offset represents the low order word of the address.  In this case, the value of the seg variable is set to the high order word of the address. 

SEE ALSO

peek, poke, def seg, seg

from The Basmark QuickBASIC Programmerís Manual by Lawrence Leinweber