没有找到相关的数组函数, 来个取巧的,用sql。。。 - -||||||
#include <Array.au3>
#include <SQLite.au3>
Dim $test[6] = [1, 1, 4, 2, 2, 4]
_ArrayDisplay($test, "Original data")
_SQLite_Startup()
_SQLite_Open()
_SQLite_Exec(-1, "Create Temp Table tempTable (Temp);")
For $o = 0 to Ubound($test) - 1
_SQLite_Exec(-1, "Insert into tempTable(Temp) values('" & $test[$o] & "');")
Next
Local $row, $col
_SQLite_GetTable2D(-1, "Select distinct Temp From tempTable;", $test, $row, $col)
_SQLite_Exec(-1, "Drop Table tempTable;")
_SQLite_Close()
_SQLite_Shutdown()
_ArrayDelete($test, 0)
_ArrayDisplay($test, "Result")
|