Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Functions Post Reply Post New Topic
Author Message
brockloch
Groupie
Groupie


Joined: 03 Oct 2010
Location: United Kingdom
Online Status: Offline
Posts: 76
Quote brockloch Replybullet Topic: Functions
    Posted: 21 Dec 2017 at 12:44am
Hi
I'm trying to find a function in Crystal similar to CLEAN in Excel. I have a set of data with some rogue characters in a field, which I can't see but I know they are there!
Any help much appreciated.
Ed
brockloch
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 21 Dec 2017 at 3:54am
I am not aware of any function that replicates it exactly but you can use multiple instances of REPLACE() to remove specific characters and also TRIM() to remove lead and end spaces
IP IP Logged
brockloch
Groupie
Groupie


Joined: 03 Oct 2010
Location: United Kingdom
Online Status: Offline
Posts: 76
Quote brockloch Replybullet Posted: 30 Dec 2017 at 9:33am
Thanks for your help, I tried TRIM() but it didn't remove the characters.

Thanks for your help.
brockloch
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 02 Jan 2018 at 3:11am
The multiple uses of REPLACE() would be more for removing the characters in the middle of the string. The trim only removes lead or trail spaces
IP IP Logged
brockloch
Groupie
Groupie


Joined: 03 Oct 2010
Location: United Kingdom
Online Status: Offline
Posts: 76
Quote brockloch Replybullet Posted: 03 Jan 2018 at 10:30pm
Thanks for this, I tried both but neither were as successful as excel's CLEAN function.

Thanks again.
brockloch
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.