From RAD Studio API Documentation
Jump to: navigation, search


function SafeArrayGetElement; external oleaut name 'SafeArrayGetElement';


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


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.

See Also