Delete Special Characters in Text

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'));

Continue Reading thatnavguy’s Article on their blog

Delete Special Characters in Text

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.

Blog Syndicated with thatnavguy’s Permission

More About This Author

Teddy
Experienced NZ-based NAV Developer and Consultant with 10+ years of experience leading multiple IT projects, performing business analyst, developing, implementing, and upgrading Dynamics NAV and Business Central.
I have led multiple Dynamics NAV and Business Central projects for businesses in Asia, such as Japan, Singapore, and Indonesia, and currently in both Australia and New Zealand.
I am passionate to deliver solution that focuses on user-friendly interface while keeping high standard of compliance with the needs. I believe in adding value to people’s lives and try to leave people better than when I first met them.

Author: Teddy

Experienced NZ-based NAV Developer and Consultant with 10+ years of experience leading multiple IT projects, performing business analyst, developing, implementing, and upgrading Dynamics NAV and Business Central. I have led multiple Dynamics NAV and Business Central projects for businesses in Asia, such as Japan, Singapore, and Indonesia, and currently in both Australia and New Zealand. I am passionate to deliver solution that focuses on user-friendly interface while keeping high standard of compliance with the needs. I believe in adding value to people’s lives and try to leave people better than when I first met them.

Share This Post On
Share via
Copy link
Powered by Social Snap