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

Notifications

Announcements

No record found.

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

Responsible AI policies

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

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans