Author Topic: Variables for shared event timing  (Read 333 times)

bdevlin

  • Newbie
  • *
  • Posts: 38
    • View Profile
Variables for shared event timing
« on: July 08, 2017, 12:28:21 pm »
Looking to do something like this. Possible?

Class mqtt_json
    Shared interval As Byte = 5
    Shared span As String = "Minutes"
   
   
    Shared Event json_payload_mqtt() RaiseEvent Every interval span
            Do Stuff
End Event
End Class

Share on Facebook Share on Twitter


mc-John

  • Global Moderator
  • Full Member
  • *****
  • Posts: 212
    • View Profile
Re: Variables for shared event timing
« Reply #1 on: July 10, 2017, 09:26:17 am »
Values in raise event need to be literals.

So  "Shared Event json_payload_mqtt() RaiseEvent Every 5 Minutes" would work.