Converting a string to lowercase - InfoPath Dev
in

InfoPath Dev

Converting a string to lowercase

Last post 02-17-2011 08:34 AM by qwerty. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 02-16-2011 12:26 PM

    Converting a string to lowercase

    Hi everybody,

    I need to have my users do a large amount of searching. Because of this, it would be nice if I could do searching that didn't require strings to exactly match. One good solution would be an XPath function that converted strings to lowercase, but I don't know if it exists. This can probably be done with code; I'm not very code-savvy, but, if that's the only way to do it, I'd like some pointers.

    Thanks for your help!

    Qwerty
  • 02-16-2011 12:58 PM In reply to

    Re: Converting a string to lowercase

    Hi you can use the xpath function translate:

    translate(my:Field, "ABCDEFGHIJKLMNOPQRSTUVWYXZ", "abcdefghijklmnopqrstuvwyxz")

  • 02-17-2011 08:34 AM In reply to

    Re: Converting a string to lowercase

    Thanks Potemkine, that's exactly what I needed. I appreciate your help!
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.