Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Replace '&' with 'and' with a formula field Post Reply Post New Topic
Author Message
elton3d
Newbie
Newbie


Joined: 10 Jul 2008
Location: United Kingdom
Online Status: Offline
Posts: 2
Quote elton3d Replybullet Topic: Replace '&' with 'and' with a formula field
     Posted: 10 Jul 2008 at 2:56am
Hi Users,

I am trying to replace certain characters like '&' if they appear within a string.

if {address1} contains '&'

replace with 'and'.

Can anyone help please?

Many thanks,

Elton
IP IP Logged
sashalewis1014
Newbie
Newbie
Avatar

Joined: 09 Jul 2008
Location: United States
Online Status: Offline
Posts: 5
Quote sashalewis1014 Replybullet Posted: 10 Jul 2008 at 6:42am
propercase(trim(replace({address 1},'&', 'and')) )
 
I added the propercase because my file was not formatted correctly. I hope this helps. Works wonders for me.
Sasha Lewis
Database Development Manager
PKD Foundation
sashal@Pkdcure.org
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