Link to home
Start Free TrialLog in
Avatar of henry
henry Flag for United States of America

asked on

find and repalce string in field

Hello,

Looking for crystal formula let me find specific text in string field and replace with other text.
I'm looking for CS, should be replace by PL

thanks

henry
Avatar of Kanti Prasad
Kanti Prasad

Hi

tst := Replace (tst,"CS" ,"PL" );
Avatar of henry

ASKER

My formula look like:
{Shipment.OrderReference}+space(1)+"-"+space(1)+{Shipment.ReleaseIdentification}

I need find and replace in Shipment.ReleaseIdentification

Where I should add your statement ?
thanks

h.
ASKER CERTIFIED SOLUTION
Avatar of Kanti Prasad
Kanti Prasad

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of James0628
I'm not expecting any points for this.  Use Replace, as Kanti Prasad suggested.  In this case, you can just replace the field with the Replace function.

{Shipment.OrderReference}+space(1)+"-"+space(1)+
 Replace ({Shipment.ReleaseIdentification},"CS", "PL")

 James