System.VarUtils.SafeArrayGetElement
Delphi
function SafeArrayGetElement; external oleaut name 'SafeArrayGetElement';
C++
extern "C" HRESULT __stdcall SafeArrayGetElement(System::PVarArray VarArray, System::PVarArrayCoorArray Indices, void * Data);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | external public | System.VarUtils.pas System.VarUtils.hpp |
System.VarUtils | System.VarUtils |
Description
Returns the element at the specified position in the given safe array.
Use SafeArrayGetElement to obtain the element found at the position specified through the Indices parameter, in the safe array given through VarArray.
If retrieving the element is successful, SafeArrayGetElement stores the element in the Data parameter.
Note: SafeArrayGetElement also locks and unlocks the safe array before and after retrieving the element, using the SafeArrayLock and SafeArrayUnlock routines.