Construct an 2D array from two 1D arrays
#include <Array.au3>
_Array2DCreate ( $aCol0, $aCol1 )
$aCol0 | A 1D Array to set as Column 0 |
$aCol1 | A 1D Array to set as Column 1 |
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. |
#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))