Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Formatting question. Post Reply Post New Topic
Author Message
swatts
Groupie
Groupie
Avatar

Joined: 17 Mar 2010
Online Status: Offline
Posts: 83
Quote swatts Replybullet Topic: Formatting question.
    Posted: 06 Sep 2011 at 3:15am
I have some string fields:

302.01
302.01.A
303.01
303.01.B
303.01.C

I need to cut the .A .B etc off of in this report. Is this possible in crystal reports?

Also, if I have a field that is String (40), is there anyway to cut it to be a String (5)?
IP IP Logged
FrnhtGLI
Senior Member
Senior Member
Avatar

Joined: 22 May 2009
Online Status: Offline
Posts: 347
Quote FrnhtGLI Replybullet Posted: 06 Sep 2011 at 4:53am
Are the fields always formatted as XXX.XX and so forth?

If you want just the first 5 charcaters, you can use the left() function to grab the first six characters (5 numbers including the first period).

left(table.field, 6)
|< /\ '][' ( )
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.047 seconds.