none
Accessing a List Collection in Infopath 2007 RRS feed

  • Question

  • Problem: I want to access all the items in a multi-select list box and set them to "True" in Infopath 2007

    --create a xpathNavigator to point to the list box

    Dim myLst As XPathNavigator = CreateNavigator().SelectSingleNode("/my:myFields/my:secOptAnesth1/my:mLstMonitors_1", NamespaceManager)

    Dim lstCollection as system.windows.forms.listbox.objectCollection

    **********************************************************

    ...OK here is where I am stuck since I can't figure out how to instantiate the lstCollection....

     

    *********************************************************************

    once it get this I presume I could get a lstcollection.count

    and then iterate through and set each value of lstcollection.item(i).setvalue("True")

    Any help would be apprectiated.


    jawsurgeon
    Wednesday, January 4, 2012 12:21 AM

Answers