Announcement

Collapse
No announcement yet.

Multiple droplist in device control

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

  • Multiple droplist in device control

    I am having difficulty creating multiple drop lists for a device in the device control. The drop lists get merged into one drop list rather than two. Code snippet below for one of the drop downs. I was thinking that a New initialization of "Pair" would create a second drop list. I have not posted the code for the second drop list but the value/status pairs are different.

    Thanks for the help.

    -ron


    ' add paging group selection droplist
    Pair = New VSPair(HomeSeerAPI.ePairStatusControl.Both)
    Pair.PairType = VSVGPairType.SingleValue
    Pair.Render = Enums.CAPIControlType.Single_Text_from_List

    Dim y As Integer
    For y = 1 To Profiles.Length - 1
    Pair.Value = 300 + y
    Pair.Status = Profiles(y)
    hs.DeviceVSP_AddPair(DeviceNew, Pair)
    Next

  • #2
    Did you ever figure out weather or not this is possible, I'm trying to do the same thing.
    If it ain't broke, don't fix it!

    Comment

    Working...
    X