web
You’re offline. This is a read only version of the page.
close
Skip to main content
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)
  • Community Member Profile Picture
    on at
    RE: How to remove particular string using x++

    Thank you very much Jovan and Vilmos!!!

  • Verified answer
    Vilmos Kintera Profile Picture
    46,149 on at
    RE: How to remove particular string using x++

    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.

  • Verified answer
    Community Member Profile Picture
    on at
    RE: How to remove particular string using x++

    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", "");

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Syed Haris Shah Profile Picture

Syed Haris Shah 9

#2
Mea_ Profile Picture

Mea_ 4

#3
howalker Profile Picture

howalker 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans