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 NAV (Archived)

Replacing characters in a string - Visual Studio

(0) ShareShare
ReportReport
Posted on by

How can I say in an expression on Visual studio that if a Value contains a "-" Replace this with a ", ".  Say my field is called  =Fields!RibbonType.Value

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Binesh Profile Picture
    7,885 on at

    Hello LewisTioga,

    Try this

    =Replace(Fields!Description.Value,"tube","headlight")

    Note: Better if you can  handle in OnAfterGetRecord() Trigger

  • Community Member Profile Picture
    on at

    You can use CONVERTSTR in CAL code to replace the character or string. You can refer https://msdn.microsoft.com/en-us/library/dd354916(v=nav.90).aspx

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 NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans