When I try to Sort my 2-Dimension Array im getting this error, and dunno why...
im not expierenced with the Array UDF so maybe someone may help with this.
AutoIt Version : 3.2.2.0
Thats The Error Msg when Running the Script:
\\Path\Array.au3 (582) : ==> Array variable has incorrect number of subscripts or subscript dimension range exceeded.:
Local $pivot = $array[int(($left + $right)/2)]
Local $pivot = ^ ERROR
Global $ListArray[255][2]
Func createList()
Local $in, $Temp
GUICtrlDelete($List1)
$List1 = GuiCtrlCreateListView("1 ", 20, 30, 170, 200)
$in = FileOpen(@ScriptDir & "\test.txt", 0)
While 1
$Line = FileReadLine($in)
If @error = -1 Then ExitLoop
$Temp = StringSplit($Line, @TAB)
$ListArray[$i][0] = $Temp[1]
$ListArray[$i][1] = $Temp[2]
$i += 1
WEnd
$Size = $i
_ArraySort($ListArray, 0, 0, $i)
For $i = 0 To $Size Step 1
GUICtrlCreateListViewItem($ListArray[$i][0], $List1)
Next
FileClose($in)
EndFunc