Announcement

Collapse
No announcement yet.

'dev_type_string' is not a member of 'Scheduler.Classes.DeviceClass'.

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

  • 'dev_type_string' is not a member of 'Scheduler.Classes.DeviceClass'.

    Clearly I'm doing something wrong with Device Type... though pulling all other properties works perfectly.

    thx for the help!

    code...

    Code:
        objEnum = hs.GetDeviceEnumerator   ' Get a list of all HS devices
        Do While Not objEnum.Finished  ' Retrieve data for each HS device
            objDevice = objEnum.GetNext
            If objDevice Is Nothing Then Continue Do
                intDevRef = objDevice.Ref(hs)
                strDevName = objDevice.Name(hs)
                strDevLoc = objDevice.Location(hs)
                strDevLoc2 = objDevice.Location2(hs)
                dblDevValue = hs.DeviceValueEx(intDevRef)
                strDevType = objDevice.dev_type_string(hs)

  • #2
    Dim s as String = CType(hs.GetDeviceByRef(10),Scheduler.Classes.DeviceClass).D evice_Type_String(hs)

    from tenScriptAid

    tenholde
    tenholde

    Comment


    • #3
      tenhold, thx for the help. I got it running!

      Code in case others need...

      Code:
          objEnum = hs.GetDeviceEnumerator   ' Get a list of all HS devices
          Do While Not objEnum.Finished  ' Retrieve data for each HS device
              objDevice = objEnum.GetNext
              If objDevice Is Nothing Then Continue Do
                  intDevRef = objDevice.Ref(hs)
                  strDevType = CType(hs.GetDeviceByRef(intDevRef),Scheduler.Classes.DeviceClass).Device_Type_String(hs)

      Comment

      Working...
      X