How to remove special characters in Crystal Reports

1101605 pts.
Tags:
Crystal Reports
Crystal Reports 11
I'm currently using Crystal Reports 11. I have fields being pulled from my table but I noticed that it has special characters in it. Is there a way for me to remove those characters? Thanks.

Answer Wiki

Thanks. We'll let you know when a new response is added.
stringvar output := {TABLE_NAME.FIELD_NAME};
output := Trim(output);  //get rid of leading & trailing spaces
output := Replace(output,Chr(13),”);  //get rid of line feed character
output := Replace(output,Chr(10),”);  //get rid of carriage return character

//add any other special characters you want to strip out.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: