RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
VarUtils.SafeArrayPtrOfIndex Function

Returns a pointer to the element at the specified position in the given safe array.

Pascal
function SafeArrayPtrOfIndex(VarArray: PVarArray; Indices: PVarArrayCoorArray; var Address: Pointer): HRESULT; stdcall;
C++
__stdcall HRESULT SafeArrayPtrOfIndex(PVarArray VarArray, PVarArrayCoorArray Indices, void * Address);

Use SafeArrayPtrOfIndex to obtain a pointer to the element found at the position specified through the Indices parameter, in the safe array given through VarArray.  

If retrieving the pointer to the element is successful, SafeArrayPtrOfIndex stores the element in the Address parameter. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!