Function Reference


_Array2DCreate

Construct an 2D array from two 1D arrays

#include <Array.au3>
_Array2DCreate ( $aCol0, $aCol1 )

Parameters

$aCol0 A 1D Array to set as Column 0
$aCol1 A 1D Array to set as Column 1

Return Value

Success: An 2D array.
Failure: Set @error Flag.
@error: 1 if either parameter is not a 1D array.
2 the 1D arrays are not the same size.

Example

#include <Array.au3>

Local $oDi = ObjCreate('scripting.dictionary')
For $i = 0 To 10
        $oDi.Add('key' & $i, 'item' & $i)
Next

_ArrayDisplay(_Array2DCreate($oDi.Keys, $oDi.Items))