Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo Basic - <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 complete address (segment and
    offset) of a variable.

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

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

      Notes:    VARPTR$ is primarily used to produce address strings for
                the PLAY and DRAW statements.

                The string returned is 5 bytes in length. The 5 bytes are
                formatted as follows:

                         Byte 0         Type of variable (see below)
                         Byte 1         Low-order byte of offset address
                         Byte 2         High-order byte of offset address
                         Byte 3         Low-order byte of segment address
                         Byte 4         High-order byte of segment address

                The variable types are:

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

See Also: DRAW PLAY (Statement) VARPTR VARSEG

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