web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How to remove particular string using x++

(0) ShareShare
ReportReport
Posted on by

when i use strrem function it removes all the characters that i specify  example strrem("input string","input"),in this example it removes all the characters i,n,p,u,t from input string.

How to remove only the string "input" as a whole and not as characters because i may wat i,n,p,u,t characters used in other strings.Is there any direct fucnton for this?

Regards

varun

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    Use the strReplace() function to remove the whole string, by replacing it with the empty string.

    In your example, it would be something like this:

    strReplace("input string", "input", "");

  • Verified answer
    Vilmos Kintera Profile Picture
    46,149 on at

    Most of the string-manipulation functions are well-documented on MSDN and other sites:

    www.axaptapedia.com/Strreplace

    Many of them are available in the Global class, starting with str, including the above mentioned strReplace. I would advise checking them.

  • Community Member Profile Picture
    on at

    Thank you very much Jovan and Vilmos!!!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

#2
Henrik Nordlöf Profile Picture

Henrik Nordlöf 2 User Group Leader

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans