Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Trim Character in a String Post Reply Post New Topic
Author Message
achandana01
Groupie
Groupie
Avatar

Joined: 20 Jul 2011
Online Status: Offline
Posts: 59
Quote achandana01 Replybullet Topic: Trim Character in a String
    Posted: 04 Apr 2012 at 12:03pm
Hi,
 
I do have the strings
 
city new york
Los Angeles
city San Francisco
 
I would like to trim prefix "city" for strings which has city as theirt prefix and leave rest like they are
 
Finally data should look like this
 
new york
Los Angeles
San Francisco
 
Thanks
chand
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 05 Apr 2012 at 3:28am
if left(table.city,4)='city ' then mid(table.city,6)
else table.city
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.018 seconds.