Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Supress the unwanted text in a String Post Reply Post New Topic
Author Message
SIddhu
Newbie
Newbie
Avatar

Joined: 27 Feb 2008
Location: India
Online Status: Offline
Posts: 22
Quote SIddhu Replybullet Topic: Supress the unwanted text in a String
     Posted: 08 Jul 2008 at 7:35am
How to supress some unwanted text which is present in the middle of the string, say its a standard text,  and display the rest in the report ??
 
for ex :
 
In this post, \font i wanted to\font have the unwanted \font text to be suppressed.
 
output must be like :
 
In this post, i wanted to have the unwanted text to be supressed.
 
can any one help me out with this ???
Thanks in advance.
Thanks,
Siddhu.
IP IP Logged
rahulwalawalkar
Senior Member
Senior Member
Avatar

Joined: 08 Jun 2007
Location: United Kingdom
Online Status: Offline
Posts: 731
Quote rahulwalawalkar Replybullet Posted: 08 Jul 2008 at 7:41am
Hi,
 
Use the following
 
 
or you can test by hard-coding....
 
trim(replace('In this post, \font i wanted to\font have the unwanted \font text to be suppressed','\font',''))
 
Output
In this post,  i wanted to have the unwanted  text to be suppressed
 
Cheers
Rahul


Edited by rahulwalawalkar - 08 Jul 2008 at 7:44am
IP IP Logged
SIddhu
Newbie
Newbie
Avatar

Joined: 27 Feb 2008
Location: India
Online Status: Offline
Posts: 22
Quote SIddhu Replybullet Posted: 08 Jul 2008 at 7:47am
thanks rahul,
This one worked fine !!
Thanks,
Siddhu.
IP IP Logged
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