Home
Crystal Reports Training
Crystal Reports XI
Crystal Reports .NET
Crystal Reports Forum
News
Tech Support
Active Topics
Memberlist
Search
Help
Register
Login
Technical Questions
Crystal Reports Forum
:
Crystal Reports 9 through 2022
:
Technical Questions
Topic: Formatting question.
Oldest Post First
Newest Post First
Author
Message
swatts
Groupie
Joined: 17 Mar 2010
Online Status: Offline
Posts: 83
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 Logged
FrnhtGLI
Senior Member
Joined: 22 May 2009
Online Status: Offline
Posts: 347
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 Logged
Printable version
Forum Jump
-- Select Forum --
Announcements
Talk with the Author
Self-Publishing
Job Postings
New feature request
Report Design
Data Connectivity
Technical Questions
Tips and Tricks
Crystal Xcelsius
Report Design
Data Connectivity
Writing Code
Tips and Tricks
Report Design
Data Connectivity
Writing Code
Tips and Tricks
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.029 seconds.
HOME
|
FREE EBOOK
|
PROGRAMMING GUIDE
|
PURCHASE
|
REVIEWS
|
CONTACT ME
|
FAQ
|
LINKS
|
CLICK PLAYS
|
COACH FORUMS
|
TROPICAL FISH
© 2004-2025 Brian Bischof. All Rights Reserved.