Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- QuickBASIC 3.0 - <b>varptr$ offset of variable, in character form</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
VARPTR$                  Offset of Variable, in Character Form

 VARPTR$(variable)

    Returns, in a character format, the offset address of a specified
    variable in the current data segment.

    variable    The name of a string or numeric variable, or an array
                element.

   ----------------------------------------------------------------------

      Notes:    A three-byte string is returned. The first byte reports
                the variable type, the second reports the low-order
                portion of the variable address, and the third reports the
                high-order portion of the variable address. The type byte
                is coded as follows:

                2   Integer
                3   String
                4   Single-precision
                8   Double-precision

                When using VARPTR$ with array variables, be aware that
                array variables are moved in memory every time a new
                nonarray variable is assigned.

See Also: VARPTR

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson