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 :
Dynamics 365 Community / Blogs / That NAV Guy / Delete Special Characters i...

Delete Special Characters in Text

Teddy Herryanto (That NAV Guy) Profile Picture Teddy Herryanto (Th... 14,040 Super User 2025 Season 2

If you want to remove any specific characters in a text, such as removing -*!? characters, you can use below code.

NewText := DelChr(OldText, '=', '-*!?');

If you want to do it the other way around, such as keeping only A-E characters and remove the rest, you can use below code.

NewText := DELCHR(OldText,'=',DELCHR(OldText,'=','ABCDEabcde'));

This was originally posted here.

Comments

*This post is locked for comments