Code: Select all
'TotalMatches is the number of items in the queue - zero based
'Result is the xml document presented as a string
Set xmlData = CreateObject("Microsoft.XMLDom")
xmlData.async = "false"
xmlData.loadXML(Result)
Dim I
CurrentQueue = ""
For I = 0 To (CInt(TotalMatches) - 1)
CurrentQueue = CurrentQueue & CStr(I + 1) & vbTab & xmlData.getElementsByTagName("upnp:album").item(I).text & vbTab & xmlData.getElementsByTagName("dc:title").item(I).text & vbLf
Next
Set xmlData = Nothing
Now, when I go to put this into an alpha-list property in HouseBot (via COM object) I use this code:
Code: Select all
'appropriate object creation occurs prior to this, of course
Call HBServer.SetPropertyValue("ZonePlayer_Playroom", "ZPQueue", CurrentQueue)
A dump file was not generated with the failure of the HouseBot server.
Osler