Author Topic: Looking for a better approach to continuously update a value  (Read 4030 times)

rbelknap

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Re: Looking for a better approach to continuously update a value
« Reply #15 on: June 22, 2017, 08:22:39 AM »
ok, That makes sense.

My other question on this, is there a reason you wouldn't use a Select Case statement?
Something like this:
Code: [Select]

     Select Case e.PlcAddress
            Case "N20:33"
                value1 = e.Values(0)
            Case "N20:34"
                value2 = e.Values(0)
            Case "N20:35"
                value3 = e > Values(0)
            Case Else
                MsgBox " No handler for " & e.plcaddress
     End Select

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Looking for a better approach to continuously update a value
« Reply #16 on: June 22, 2017, 06:07:42 PM »
The Select-Case works just as well.