ArrPtr Function

Purpose

Returns the address of a variable of any type.

Syntax

% = ArrPtr(x)

x:variable or field name

Description

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.

Example

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%

Remarks

* is synonymous with ArrPtr() and can be used instead.

See Also

Varptr(), V:

{Created by Sjouke Hamstra; Last updated: 23/09/2014 by James Gaite}