46 lines
1.6 KiB
HTML
46 lines
1.6 KiB
HTML
<HTML>
|
|
<HEAD><TITLE>QuickBASIC 3.0 - Long Entry</TITLE></HEAD>
|
|
<BODY>
|
|
|
|
<A HREF="ng31b33.html">[<<Previous Entry]</A>
|
|
<A HREF="ng320.html">[^^Up^^]</A>
|
|
<A HREF="ng321ab.html">[Next Entry>>]</A>
|
|
<A HREF="menu.html" >[Menu]</A>
|
|
<A HREF="info.html">[About The Guide]</A>
|
|
<HR>
|
|
<PRE>
|
|
<B>VARPTR Offset of Variable or Offset of File Buffer</B>
|
|
|
|
<B>VARPTR</B>(<U>variable</U>) or <B>VARPTR</B>(#<U>filenum</U>)
|
|
|
|
Returns the offset address of a variable, or of a file I/O buffer,
|
|
within the current data segment.
|
|
|
|
<U>variable</U> The name of a string or numeric variable, or an array
|
|
element.
|
|
|
|
<U>filenum</U> The number under which a file was OPENed.
|
|
|
|
----------------------------------------------------------------------
|
|
|
|
<B>Notes:</B> 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.
|
|
</PRE>
|
|
<HR>
|
|
<B>See Also:</B>
|
|
<A HREF="ng321ab.html">VARPTR$</A>
|
|
<HR>
|
|
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
|
|
Written by <A HREF="http://www.acemake.com/hagbard">Dave Pearson</A>
|
|
<HR>
|
|
</BODY>
|
|
</HTML>
|