System.VarUtils.SafeArrayPutElement
Delphi
function SafeArrayPutElement; external oleaut name 'SafeArrayPutElement';
C++
extern "C" HRESULT __stdcall SafeArrayPutElement(System::PVarArray VarArray, System::PVarArrayCoorArray Indices, const void * Data);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | external public | System.VarUtils.pas System.VarUtils.hpp |
System.VarUtils | System.VarUtils |
Description
Sets the element at the specified position in the given safe array.
Use SafeArrayPutElement to change the value of the element found at the position specified through the Indices parameter, in the safe array given through VarArray. The new value is stored in the Data parameter.
Note: SafeArrayPutElement also locks and unlocks the safe array before and after setting the element, using the SafeArrayLock and SafeArrayUnlock routines.