Announcement

Collapse
No announcement yet.

ASP/HS Question

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

    ASP/HS Question

    WARNING: n00b alert !

    Hi Guys,

    I have a question I am hopeing someone can help with. The question is kinda out of the scope of this forum, so forgive me for that.

    I thought I'd have a go at designing my own web interface for Homeseer. I have never tried anything like this before, so don't really know what I am doing, but am getting some results no the less

    I am using the following lines in my code

    set devices = hs.GetDeviceList
    for each dv in devices
    response.write dv.name & dv.location
    next

    which works fine. The problem is, that they are not in any particular order ! Is there an easy was to sort the devices using vbscript/asp ?

    Appreciate any help

    #2
    Here's a good article on sorting an array. So first store all the values in an array then use the following link to sort that array.


    http://www.aspfaqs.com/aspfaqs/ShowFAQ.asp?FAQID=83

    -Rupp
    Isn't Disney World a people trap operated by a mouse?
    💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

    Comment


      #3
      Excellent, Thanks Rupp !

      Comment

      Working...
      X