Function Reference


_CreateSafeArrayIndices

Creates an array of indices for a SafeArray, supporting up to 5 dimensions.

_CreateSafeArrayIndices([$iIndex1 = 0 [, $iIndex2 = 0 [, $iIndex3 = 0 [, $iIndex4 = 0 [, $iIndex5 = 0]]]]])

Parameters

$iIndex1 (Optional) First index (default: 0).
$iIndex2 (Optional) Second index (default: 0).
$iIndex3 (Optional) Third index (default: 0).
$iIndex4 (Optional) Fourth index (default: 0).
$iIndex5 (Optional) Fifth index (default: 0).

Return Value

Success: 1D array containing the specified indices.
Failure: 0 and sets @error to 1 (too many dimensions).

Remarks

Compatible with _SafeArrayPutElement and _SafeArrayGetElement.