System.VarUtils.SafeArrayPutElement

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function SafeArrayPutElement; external oleaut name 'SafeArrayPutElement';

Properties

Type Visibility Source Unit Parent
function external public System.VarUtils.pas 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.

See Also