Hi, guys I'm doing a little research in Array and found a very useful function: _ArrayUnique. But I'm having problems while trying to use. Here is my code, i get directly from the Help File #include <Array.au3>
Local $aArray[6][2] = [[1, "A"], [2, "B"], [3, "C"], [1, "A"], [2, "B"], [3, "C"]]
_ArrayDisplay($aArray, "2D array") ; Display the current array.
Local $aArrayUnique = _ArrayUnique($aArray) ; Use default parameters to create a unique array of the first column.
_ArrayDisplay($aArrayUnique, "$aArray first column") ; Display the unique array.
$aArrayUnique = _ArrayUnique($aArray, 1) ; Create a unique array of the second column.
_ArrayDisplay($aArrayUnique, "$aArray second column") ; Display the unique array.
But when I run, i got this: >"I:\LiberKey\MyApps\autoit-v3\SciTe\..\AutoIt3.exe" /ErrorStdOut "I:\LiberKey\MyApps\autoit-v3\Projects\teste.au3"
"I:\LiberKey\MyApps\autoit-v3\Include\Array.au3" (2297) : ==> Array variable has incorrect number of subscripts or subscript dimension range exceeded.:
If IsInt($aArray[$iBase]) Then
If IsInt(^ ERROR
>Exit code: 1 Time: 1.749
I use a portable version of AutoIt. Below has some System Specifications: AutoIt Version: V3.3.14.1 [X32] Windows Version: WIN_XP [Portuguese] Language: 0416 Someone can help me? (And sorry for my bad english)