Hello
I need to display the 2nd value of my drop down list.
This displays the FIRST value of my list:
-----------------------------------------
Dim myList As IXMLDOMNode
myList = thisXDocument.DOM.selectSingleNode("my:myFields/my:test")
textField.text = myList.text
This also displays the FIRST value of my list:
-----------------------------------------
Dim myList As IXMLDOMNodeList
myList = thisXDocument.DOM.selectNodes("my:myFields/my:test")
textField.text = lista(0).text
BUT.....
This DOESN't displays the SECOND value of my list :(
-----------------------------------------------------
Dim myList As IXMLDOMNodeList
myList = thisXDocument.DOM.selectNodes("my:myFields/my:test")
textField.text = lista(1).text
This gives me an error:
System.NullReferenceException
Object reference not set to an instance of an object.
How can I display the second value of my list? Any suggestions?
PS. I don't want to use XPath because I need to do some operations directly from my VB code.