Announcement

Collapse
No announcement yet.

Comparing files and date

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Comparing files and date

    SOLVED!!


    Hi all ,


    i dont know how i can do this :

    i want to compare the data from a csv to a string of a virtual device

    If i use this line it works with the entered info in the ini file :

    Code:
    If ref2.ToLower.Contains (devp.ToLower.replace("-","")) Then hs.speak ("Plates, ini file working")
    but if i want it to use wuth the csv file it doesnt work , but the log shows the correct data at both ...why doesnt it trigger ?

    Code:
    If arrSplitData2(0).ToUpper.Contains (ref2) then hs.writelog("Compare","Match Found!   " & arrSplitData2(0))




    i have solved already the compare date with this :
    Code:
    Dim StartDate As Date = obj.Item("vervaldatum").ToString 'Start Date 
    		Dim CompareDate As Date = Now.Date 'Todays Date
    		Dim result as integer = Datetime.Compare(startdate, Comparedate)
    Last edited by Malosa; August 31st, 2016, 11:09 AM. Reason: Solved
    Preferred -> Jon's Plugins, Pushover, Phlocation, Easy-trigger,
    Rfxcom, Blade Plugins, Pushbullet, homekit, Malosa Scripts




    HS3Pro 3.0.0.531 on windows 7 ultimate X64 on hp quadcore laptop 8 GB.

  • #2
    Solved it , it was a comma at wrong place
    Preferred -> Jon's Plugins, Pushover, Phlocation, Easy-trigger,
    Rfxcom, Blade Plugins, Pushbullet, homekit, Malosa Scripts




    HS3Pro 3.0.0.531 on windows 7 ultimate X64 on hp quadcore laptop 8 GB.

    Comment

    Working...
    X