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: "Left" Syntax Error
Author
Message
stefshuuj
Newbie
Joined: 24 Feb 2009
Online Status: Offline
Posts: 9
Topic: "Left" Syntax Error
Posted: 01 Feb 2010 at 8:16pm
Hello again all,
I have a field that has for example content "110 Ellip" which is being pulled from our database and cannot be changed.
I only want to show the "110" in the field on the report.
I am trying to use:
left({tablename.fieldname},3)
However keep getting an error about the selection must be a boolean.
An I heading down the right path here?
Thanks in advance
Stephen
Thanks in Advance
Stephen
"CR Newbie"
IP Logged
DBlank
Moderator
Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Posted: 02 Feb 2010 at 8:35am
Yes but it sounds like youa re putting that in your select expert rather than a formula field.
Use that syntax
left({tablename.fieldname},3)
in a formula field
IP Logged
kevlray
Admin Group
Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Posted: 02 Feb 2010 at 8:59am
Where as if they want to filter the report by entries that have the "110" it would be
left({tablename.fieldname},3) = "110"
IP Logged
stefshuuj
Newbie
Joined: 24 Feb 2009
Online Status: Offline
Posts: 9
Posted: 02 Feb 2010 at 2:06pm
Thanks Guys, Works perfectly now.
I was putting it in the select record expert rather then the formula.
Cheers
Thanks in Advance
Stephen
"CR Newbie"
IP Logged
davejwhite
Newbie
Joined: 19 Jan 2010
Online Status: Offline
Posts: 34
Posted: 03 Feb 2010 at 2:29am
You can also use a Field Subscript - like this
({tablename.fieldname} [1 To 3]
What is inside the square brackets determines what part of the string it extracts by character position.
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
|
BAEZL
© 2004-2026 Brian Bischof. All Rights Reserved.