Function Reference


_AutoItArrayFromSafeArray

Converts a COM SafeArray to an AutoIt array.

_AutoItArrayFromSafeArray($pSafeArray)

Parameters

$pSafeArray Pointer to the SafeArray.

Return Value

Success: AutoIt array with the same dimensions and data.
Failure: 0 and sets @error:
1 - Invalid SafeArray pointer.
2 - Invalid dimensions or SafeArray access error.
3 - Failed to get lower bound.
4 - Failed to get upper bound.
5 - Invalid dimension size (<= 0).
7 - Too many dimensions (> 5).
8 - SafeArray does not contain VARIANT elements.

Remarks

Preserves AutoIt dimension order. Only supports VT_VARIANT SafeArrays.

Related

_SafeArrayFromAutoItArray, _SafeArrayGetElement