string.equals(any instance of a repeating element) - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

string.equals(any instance of a repeating element)

Last post 04-10-2012 02:51 PM by Hilary Stoupa. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 04-10-2012 01:13 PM

    string.equals(any instance of a repeating element)

    I am struggling for the equation or expression to compare a string with any element of a repeating element.

    If any one could help me out here that would be amazing!

    Using C#.

  • 04-10-2012 02:17 PM In reply to

    Re: string.equals(any instance of a repeating element)

    I am able to compare the value of the first instance of the repeating element but I need to compare all instances of it to a string

    main.SelectSingleNode("xpath").Value.Equals(line.Substring(3, 3)))

  • 04-10-2012 02:51 PM In reply to

    Re: string.equals(any instance of a repeating element)

    Just XPath would do this, right? Like, for an XPathNodeIterator, you could use a filtered XPath to get back the correct instances - or am I oversimplifying what you are trying to do?

    Hilary Stoupa

Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.