Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/03/2015 in all areas

  1. Since no one thought of it before I would say : _ArrayUnique
    1 point
  2. #include <Array.au3> Local $aArray_Base[8] = ["1","2","3","1","2","2","5","6"] _ArrayDisplay($aArray_Base, "Base array") $aArray_Base=_ArrayUnique($aArray_Base,0,0,0,0) _ArraySort($aArray_Base) _ArrayDisplay($aArray_Base, "Final array") Edit: removed item count in _arrayunique()
    1 point
  3. Does this function do what you are after? https://www.autoitscript.com/autoit3/docs/libfunctions/_ArrayUnique.htm
    1 point
  4. _ArrayUnique() ? Jos
    1 point
  5. MikahS

    File Encrypt Decrypt

    What's with all the hexadecimal?
    1 point
  6. I always strongly recommend using SQLite Expert (the free version will do) for experimenting/playing/using SQLite databases. One more note: SQLite is by far the most used RDBMS ever but it's a serverless engine; Due to bugs in all networked file locking protocols currently available (including Windows, Linux, Solaris, whatever) it isn't advicable to access an SQLite DB from a network using the bare library (some wrappers overcome this limitation). OTOH, local concurrent access is no problem.
    1 point
  7. Look into help file. #include <SQLite.au3> #include <SQLite.dll.au3> Local $aResult, $iRows, $iColumns, $iRval _SQLite_Startup() If @error Then MsgBox(16, "SQLite Error", "SQLite.dll Can't be Loaded!") Exit -1 EndIf ConsoleWrite("_SQLite_LibVersion=" & _SQLite_LibVersion() & @CRLF) _SQLite_Open() ; Open a :memory: database If @error Then MsgBox(16, "SQLite Error", "Can't Load Database!") Exit -1 EndIf ;Example Table ; ID | Name | Age ; ----------------------- ; 1 Alice | 43 ; 2 Bob | 28 ; 3 Cindy | 21 If Not _SQLite_Exec(-1, "CREATE TEMP TABLE persons (ID,Name, Age);") = $SQLITE_OK Then _ MsgBox(16, "SQLite Error", _SQLite_ErrMsg()) If Not _SQLite_Exec(-1, "INSERT INTO persons VALUES (1,'Alice','43');") = $SQLITE_OK Then _ MsgBox(16, "SQLite Error", _SQLite_ErrMsg()) If Not _SQLite_Exec(-1, "INSERT INTO persons VALUES (2,'Bob','28');") = $SQLITE_OK Then _ MsgBox(16, "SQLite Error", _SQLite_ErrMsg()) If Not _SQLite_Exec(-1, "INSERT INTO persons VALUES (3,'Cindy','21');") = $SQLITE_OK Then _ MsgBox(16, "SQLite Error", _SQLite_ErrMsg()) ; Query $iRval = _SQLite_GetTable2d(-1, "SELECT * FROM persons;", $aResult, $iRows, $iColumns) If $iRval = $SQLITE_OK Then _SQLite_Display2DResult($aResult) ;~ $aResult looks like this: ;~ ;~ ID Name Age ;~ 1 Alice 43 ;~ 2 Bob 28 ;~ 3 Cindy 21 ;~ ;~ If the dimensions would be switched in _SQLite_GetTable2d the result would look like this: ;~ ;~ Name Alice Bob Cindy ;~ Age 43 28 21 Else MsgBox(16, "SQLite Error: " & $iRval, _SQLite_ErrMsg()) EndIf _SQLite_Close() _SQLite_Shutdown() regards
    1 point
×
×
  • Create New...