Returns the address of a variable of any type.
% = ArrPtr(x)
x:variable or field name
ArrPtr returns the address of all variable types, except for arrays and string.
ArrPtr(a()) and ArrPtr(a$) return the addresses of array and string descriptors respectively. For a fixed string ArrPtr returns the first four bytes of the data. This function has no meaning for a fixed-string.
OpenW # 1
Dim a(1), a$, n%
Print ArrPtr(a()) // prints the address of a() descriptor
Print *a$ // prints the address of a$ descriptor
Print ArrPtr(n%) // prints the address of n%
Print *n% // prints the address of n%
* is synonymous with ArrPtr() and can be used instead.
{Created by Sjouke Hamstra; Last updated: 23/09/2014 by James Gaite}