Jump to content

Recommended Posts

Posted

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

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...