VarUtils.SafeArrayGetElement

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

From VarUtils.pas

	function SafeArrayGetElement(VarArray: PVarArray;
		Indices: PVarArrayCoorArray;
		Data: Pointer): HRESULT;


Unit: VarUtils

Type: function

Visibility: public

C++ Information

From VarUtils.hpp

	long __fastcall SafeArrayGetElement(System::TVarArray * VarArray, int * Indices, void * Data);


Unit: VarUtils

Type: function

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.

See Also

Personal tools
Translations
Newest Version