Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Compare Date in an Array and display lines found

$
0
0
Hi,

I have an array filled with data from some ini files.
A section of each ini files contain a key named "AU" and containing a date like "2012/12/14".
Some files does not contain any value for "AU".

I need to the date from each file with the date of today and store in a file each line of the array if the date of today is before the date in the file.

This is what i've done for now :

[ autoit ]      
$aIni_List = _FileListToArray(@ScriptDir & "\DB\", "*.ini", 1) $aIni_Content = IniReadSection(@ScriptDir & "\DB\" & $aIni_List[1], "INFOS") Global $aResults[$aIni_List[0] + 1][$aIni_Content[0][0]] For $i = 1 To $aIni_Content[0][0] $aResults[0][$i - 1] = $aIni_Content[$i][0] Next For $i = 1 To $aIni_List[0] $aIni_Content = IniReadSection(@ScriptDir & "\DB\" & $aIni_List[$i], "INFOS") For $j = 1 To $aIni_Content[0][0] $aResults[$i][$j - 1] = $aIni_Content[$j][1] Next Next

I don't know how to do ? Could you help me please ?
Regards.

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>