translate - replace characters with nothing ? - InfoPath Dev
in

InfoPath Dev

translate - replace characters with nothing ?

Last post 08-26-2015 11:20 AM by Carphunter. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 08-26-2015 10:37 AM

    translate - replace characters with nothing ?

    I've got a field i'm running the formula translate(fieldname, "!@#$%%", "") trying to replace those characters with nothing...no space, no dash, etc. The way i've written it here...i get spaces as replacements. How do i get the characters deleted?
  • 08-26-2015 10:44 AM In reply to

    Re: translate - replace characters with nothing ?

    As long as there isn't a space between the last set of quotes, you shouldn't be getting spaces - you should be getting nothing. I just tested your formula, and it worked for me as anticipated. Want to attach a form or some screenshots under the Options tab in a reply to show me the issue?
    Hilary Stoupa

  • 08-26-2015 11:00 AM In reply to

    Re: translate - replace characters with nothing ?

    think i found the glitch. in my formula i have the quoted field name section separated from the quoted character section with ,[space]. When i remove the space, my problem goes away
  • 08-26-2015 11:04 AM In reply to

    Re: translate - replace characters with nothing ?

    while i'm at it... how do you replace " and ' ? how do you escape them in the replacement pattern? Thanks in advance :)
  • 08-26-2015 11:20 AM In reply to

    Re: translate - replace characters with nothing ?

    never mind. figured it out. made a field that i populated with all the charactes to replace, and then added that to the translate formula in stead of the quoted characters.
Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.