noobin Posted April 11, 2020 Posted April 11, 2020 Hello All I'm trying to make the function Load, load only the data from 2 hours ago, but due to the String DateAutoLoad which is composed by DateAuto and TimeAuto, I have tried to do an If statement with DateAuto but it didn't work. Is there a way to do it with Strings and Ini File? Thank You koda agenda postforum.au3 agendaprueba3.ini
Colduction Posted April 11, 2020 Posted April 11, 2020 (edited) You can focus on file modified date (FileGetTime function) to check and grab data from 2 hours ago too Edited April 11, 2020 by Colduction
mikell Posted April 11, 2020 Posted April 11, 2020 You might include something like this (concept) $aSecNames = IniReadSectionNames("agendaprueba3.ini") For $i = 1 to $aSecNames[0] $sDateManual = IniRead("agendaprueba3.ini",$aSecNames[$i],"Manual Date","None") $sTimeManual = IniRead("agendaprueba3.ini",$aSecNames[$i],"Manual Time","None") If _DateDiff ("h", $sDateManual & " " & $sTimeManual, _NowCalc()) < 2 Then ... depending on the wanted format you can get an array, a string, etc which will mention 0 or more results
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now