Help Center

DSAFEARRAY.PtrOfIndexmethod

Returns a pointer to an array element.

COMmethodDSafeArray.incdocumented

Syntax

FUNCTION PtrOfIndex (BYVAL prgIndices AS LONG PTR) AS ANY PTR
FUNCTION PtrOfIndex (BYVAL idx AS LONG) AS HRESULT
FUNCTION PtrOfIndex (BYVAL cElem AS LONG, BYVAL cDim AS LONG) AS HRESULT

Parameters

NameDescription
prgIndicesAn array of index values that identify an element of the array. All indexes for the element must be specified.
idxIndex of the element.
cElemIndex of the element.
cDimDimension number of the array.

Description

Returns a pointer to an array element.

Multidimensional array:

One-dimensional array:

Two-dimensional array:

Reference

  • Include file DSafeArray.inc
  • Defined in AfxNova/DSafeArray.inc:906
  • Documented in COM/DSAFEARRAY Class.md
  • Topic: DSAFEARRAY Class