DSAFEARRAY.PtrOfIndexmethod
Returns a pointer to an array element.
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
| Name | Description | |
|---|---|---|
prgIndices | An array of index values that identify an element of the array. All indexes for the element must be specified. | |
idx | Index of the element. | |
cElem | Index of the element. | |
cDim | Dimension 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