Announcement

Collapse
No announcement yet.

Scripting Question

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Scripting Question

    How do I place the Number of days into a virtual device. Below is my attempt at trying to get the script to work.

    It works OK until the last line...... I trying to place the value of days till Gary's Birthday into z2.



    Sub main()
    Const Device = "z2"
    Dim s 'equals days till Gary's Birthday
    s = DateDiff("d", Now , "20-Oct")
    hs.WriteLog "Info", "There are " & s & " days until Gary's Birthday."
    hs.SetDeviceString Device, & s

    End Sub

    #2
    OK - I figured it out at last

    Comment

    Working...
    X