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: Need help building a formula
Author
Message
blazeme182
Groupie
Joined: 15 Dec 2009
Online Status: Offline
Posts: 44
Topic: Need help building a formula
Posted: 24 Apr 2012 at 9:46am
I have both French and English in my database. I have created a report in English and want the field {Notes} to only show the English text.
The way the information is entered all English text starts with <@@ and ends with @@>.
I need a formula to only extract the text between <@@ and @@>
thanks in advance
IP Logged
lockwelle
Moderator
Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Posted: 24 Apr 2012 at 10:42am
local numbervar start := instr({table.field}, "<@@");
local numbervar dne := instr({table.field}, "@@>");
mid({table.field}, start + 3, dne - start - 4)
if it isn't right on, it should be pretty close.
IP Logged
blazeme182
Groupie
Joined: 15 Dec 2009
Online Status: Offline
Posts: 44
Posted: 25 Apr 2012 at 5:29am
Thank You a lot it worked great one small correction I had to make because it was cutting out the last character. This below worked great.
local numbervar start := instr({table.field}, "<@@");
local numbervar dne := instr({table.field}, "@@>");
mid({table.field}, start + 3, dne - start - 3)
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.