Home
Crystal Reports Training
Crystal Reports XI
Crystal Reports .NET
Crystal Reports Forum
News
Tech Support
Active Topics
Memberlist
Search
Help
Register
Login
Report Design
Crystal Reports Forum
:
Crystal Reports 9 through 2022
:
Report Design
Topic: Removing chars
Author
Message
Goldberg
Groupie
Joined: 15 Apr 2011
Location: Portugal
Online Status: Offline
Posts: 58
Topic: Removing chars
Posted: 24 Oct 2011 at 3:49am
Hello,
I have a string that gives the abreviation of a school course, like the following:
INF2_2011/2012
COM1_2011/2012
...
I'd like to know how can you trim it so that it removes the last 10 chars, turning it into "INF2", "COM1" ...
Thanks
IP Logged
DBlank
Moderator
Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Posted: 24 Oct 2011 at 4:14am
one way...
mid(table.field,1,length(table.field)-10)
IP Logged
Goldberg
Groupie
Joined: 15 Apr 2011
Location: Portugal
Online Status: Offline
Posts: 58
Posted: 24 Oct 2011 at 4:42am
Worked perfectly.
Thanks, DBlank.
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
HOME
|
FREE EBOOK
|
PROGRAMMING GUIDE
|
PURCHASE
|
REVIEWS
|
CONTACT ME
|
FAQ
|
LINKS
|
PRIVACY
|
CLICK PLAYS
|
KONACAD
© 2004-2026 Brian Bischof. All Rights Reserved.