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: Concat field but surpress fields??
Author
Message
jbalbo
Senior Member
Joined: 17 Feb 2011
Online Status: Offline
Posts: 219
Topic: Concat field but surpress fields??
Posted: 21 Feb 2013 at 5:43am
Hi
I evaluate three formulas
A,B and C
on a group footer i want to display A - B - C in a textbox
but if one is null thne I want to not have a space
so A is blank then B-C
if B is blank then A-C etc....
Thanks
Joe
IP Logged
DBlank
Moderator
Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Posted: 21 Feb 2013 at 5:58am
are A B and C coming from the last row in the group?
if so you could just add them together and then do a replace on that
replace({A} + ' - ' + {B} + ' - ' + {C},' - - ',' - ')
Edited by DBlank - 21 Feb 2013 at 5:59am
IP Logged
jbalbo
Senior Member
Joined: 17 Feb 2011
Online Status: Offline
Posts: 219
Posted: 21 Feb 2013 at 6:27am
Thanks for the info never used replace
It almost works..
It wants to leave a a space
I changed to replace({@A} + ' '+ {@B} + ' ' + C},' ',' ')
if A is not null
I get
A
if A is null and B is not
Then I get
B
so the list looks like
A
B
A B
B
etc
Thanks
IP Logged
DBlank
Moderator
Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Posted: 21 Feb 2013 at 6:30am
trim the replace
IP Logged
jbalbo
Senior Member
Joined: 17 Feb 2011
Online Status: Offline
Posts: 219
Posted: 21 Feb 2013 at 9:58am
Thanks works great
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.