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 or offset of file buffer</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
VARPTR                   Offset of Variable or Offset of File Buffer

 VARPTR(variable)   or   VARPTR(#filenum)

    Returns the offset address of a variable, or of a file I/O buffer,
    within the current data segment.

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

     filenum    The number under which a file was OPENed.

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

      Notes:    The offset returned is a single-precision value in the
                range 0 to 1048575. For variables, the offset is that of
                the first byte associated with the specified variable.

                If the variable has not yet been used in an assignment
                statement, an Illegal Function Call error results.

                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