Good day and happy new year.
I want to iterate through a multiselect list box and set the values of each of the items in the box to "True" (or whatever).
The multiselect xpath = "/my:myFields/my:secOptAnesth1/my:mLstMonitors_1"
I tried the following to try and iterate through the list box:
Dim myListBox As XPathNavigator = _
CreateNavigator().SelectSingleNode("/my:myFields/my:secOptAnesth1/my:mLstMonitors_1", NamespaceManager)
' Select nodes in specified XPathNavigator.
CurrentView.SelectNodes(myListBox)
' Get selected nodes.
Dim selectedNodes As XPathNodeIterator = CurrentView.GetSelectedNodes()
' Display the count of selected nodes.
MessageBox.Show(selectedNodes.Count.ToString())
' Loop through collection and display information.
Dim selectedNode As XPathNavigator
For Each selectedNode In selectedNodes
MessageBox.Show(selectedNode.Name)
MessageBox.Show(selectedNode.InnerXml)
MessageBox.Show(selectedNode.Value)
Next
..but that did not work.
So obviously I am missing some way to grab and set the values of each item.
Thanks in advance for any help.
Thanks.