Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Supressing Characters Post Reply Post New Topic
Author Message
Phate06
Newbie
Newbie


Joined: 24 Nov 2011
Online Status: Offline
Posts: 6
Quote Phate06 Replybullet Topic: Supressing Characters
    Posted: 14 Jun 2012 at 3:42am
Hi, bit of a newbie here so please bear with me.Wink
 
I have a report that I want a product code to appear on, however I need to supress the first 7 characters and then the last 5 characters, leaving the remaing characters in the middle to appear.
 
If I use the below it only joins the formulas together not work together to give the desired result.
 
right ({Product.ProductCode},Len({Product.ProductCode})-7) + Left ({Product.ProductCode},Len({Product.ProductCode})-5)
 
Can anyone help?
 
Thank you
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 14 Jun 2012 at 3:46am
maybe
mid({Product.ProductCode},8,len({Product.ProductCode})-12)


Edited by DBlank - 14 Jun 2012 at 3:47am
IP IP Logged
Phate06
Newbie
Newbie


Joined: 24 Nov 2011
Online Status: Offline
Posts: 6
Quote Phate06 Replybullet Posted: 14 Jun 2012 at 3:54am
Wow thank you so much for the prompt answer. works a treat Smile
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.012 seconds.