Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Extract particular Text from String in Crystal rep Post Reply Post New Topic
Author Message
Arpit
Newbie
Newbie
Avatar

Joined: 26 Oct 2016
Location: United States
Online Status: Offline
Posts: 1
Quote Arpit Replybullet Topic: Extract particular Text from String in Crystal rep
    Posted: 14 Dec 2016 at 7:43am
HI

I have a situation where I need to extract text from string which ends with delimiters.

Here is an example

e.g. Text &BIC&

the text is of different length in every row and same is with BIC. I want to extract the Text and eliminate the BIC from the field. Please can anyone suggest a formula for this in Crystal Reports 11
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 14 Dec 2016 at 11:27am
Look at the replace function.  ie, Replace({somefield},"BIC", "")  (I may have the syntax wrong).
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3701
Quote hilfy Replybullet Posted: 15 Dec 2016 at 9:26am
Also, if you need just a part of the string without the delimiters, you can use Split(<string field>, <delimiter>) to split it into an array and then walk through the array to get the pieces that you need.

-Dell
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.