Jump to content

Leaderboard

Popular Content

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

  1. You can do something like this, and not worry about deleting/repopulating the array: Local $aSomething[40][2] ; populate For $i = 0 To UBound($aSomething)-1 $aSomething[$i][0]=$i $aSomething[$i][1]=True Next ; 'delete' some of the records (just make them False) $aSomething[20][1]=False $aSomething[25][1]=False ; loop through, and skip those that are false For $i = 0 To UBound($aSomething)-1 If $aSomething[$i][1] Then ConsoleWrite($aSomething[$i][0] & @CRLF) EndIf Next
    1 point
  2. Is it me or is that one more typical good use case for SQLite?
    1 point
  3. Jewtus

    Parse CSV crash

    FYI, This is the line the Parse CSV chokes on: Local $aREgex = StringRegExp($sFile, $sPattern, 3) I hear you all talking about escaping double quotes, but why would it only fail on one of the two records? Is the content of the record too long? @UEZ If you open the file in notepad++ and do a regex replace on n you can see the two records as single lines each. @BrewManNH I think you might be right with the stack overflow... Is there a way to tell? Just delete some of the text? The only real difference I can see is the the column in the first record is 9173 characters and the second is 4091 (ignoring CRs and LFs) EDIT: This did work: Local $aArray = _CSVSplit(FileRead($filename),",") _ArrayDisplay($aArray)
    1 point
  4. mLipok

    _Date... Functions

    A little earlier I opened a new Track ticket: #3002. Now I see that it could use some discussion. I would like to move the debate here, so as not to clutter up the Track. I agree with @jchd about remark in helpfile and fully agree about delimeter in output date format because this is very handy for MS SQL dates. I want to propose a change to _DateAdd.au3 I only added: ; Get Date Delimeter Char Local $sDateDelimeter = StringMid($sDate,5,1) and changed: ; Format the return date $sDate = $asDatePart[1] & $sDateDelimeter & StringRight("0" & $asDatePart[2], 2) & $sDateDelimeter & StringRight("0" & $asDatePart[3], 2) Edit: feel free to say what you think about this. Best regards, mLipok
    1 point
  5. Melba23

    Over moderation

    MarksRobert, Fine - your choice. M23
    1 point
  6. UEZ

    _ArrayUnique

    I assume guinness hacked the db to take back his Like vote.
    1 point
  7. milky

    Calling 7z.dll

    Hello again, the way, the 7z.dll wants to be used is a bit strange, so I decided to give up trying to create some nice UDF for it. But I found a much nicer way for using 7-Zip and it's great features for generating and updating archives. I re-used the source of 7zg.exe and created a new 7zg-mini.exe, you can find the documentation and the code here: http://mcmilk.de/projects/USB-Backup/ - search for 7zg-mini It is a bit more code then normal, so I will not Post it here And the USB-Backup there is an "AutoIt application" ... full source of it is also there... but most comments are in german, sorry. with best regards, Tino
    1 point
×
×
  • Create New...