And what about
Code:
Redim $matches[UBound($tmp)/2][3]
For Redim stand in help file
Resize an existing array.
ReDim $aArray[subscript 1]...[subscript n]
Parameters
-$aArray The name of the array to resize.
-subscript The number of elements to create for the array dimension, indexed 0 to n-1.
Then this one
Code:
$matches[UBound($tmp)/2]
Returns the size of array dimensions.
UBound ( Array [, Dimension = 1] )
Parameters
Array The array variable which is being queried.
Dimension [optional] Which dimension of a multi-dimensioned array to report the size of:
$UBOUND_DIMENSIONS (0) = Number of subscripts in the array
$UBOUND_ROWS (1) = Number of rows in the array (default)
$UBOUND_COLUMNS (2) = Number of columns in the array
Constants are defined in Constants.au3
Return Value
Success: the size of the array dimension.
Failure: 0 and sets the @error flag to non-zero.
@error: 1 = Array given is not an array.
2 = Array dimension is invalid.
So what it all do and this one too
Code:
For $i = 0 to UBound($tmp)-1 step 2
$matches[$i/2][0] = $i/2
$matches[$i/2][1] = $tmp[$i]
$matches[$i/2][2] = $tmp[$i+1]
Next