Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Parsing a field in the middle ?? Post Reply Post New Topic
<< Prev  Page  of 2
Author Message
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 17 Jul 2013 at 6:05am

I forgot that the end string might precede the start string

you can blank these out with another if statement
if start=12 then "" else if end=0 then "" else if end<=start then "" else mid(x,start,end-start);
 
 or you can force the "end" to only start looking after the location of the "begin". 
Let me know if you need that
IP IP Logged
<< Prev  Page  of 2
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