System.VarUtils.SafeArrayPtrOfIndex

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function SafeArrayPtrOfIndex; external oleaut name 'SafeArrayPtrOfIndex';

C++

extern "C" HRESULT __stdcall SafeArrayPtrOfIndex(System::PVarArray VarArray, System::PVarArrayCoorArray Indices, void * &Address);

Properties

Type Visibility Source Unit Parent
function external public
System.VarUtils.pas
System.VarUtils.hpp
System.VarUtils System.VarUtils

Description

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

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.

See Also