Solved

Remove comma from string field in a Crystal Report

Posted on 2003-12-04
2
2,402 Views
Last Modified: 2007-12-19
I have a string in a report that sometimes has commas in it, how can i remove these in a formula?

Like:   John Smith, Jr.
Needs to be:  John Smith Jr.
0
Comment
Question by:cybrthug
2 Comments
 
LVL 42

Accepted Solution

by:
frodoman earned 125 total points
ID: 9876645
Replace({FieldName},",","XXX")

XXX above represents whatever you want to replace the commas - you can simply use an empty string "" to remove them completely.
0
 

Author Comment

by:cybrthug
ID: 9876683
Awesome work frodoman,  I did take out the XXX and it worked great.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question