Solved

Formula to search text including double quotation marks ("")

Posted on 2009-05-19
3
241 Views
Last Modified: 2012-05-07
Gurus,

I have to search for a string of text in a field; the text includes quotation marks like this:

to "ABC"

So, the text includes the word to, a space, and then a value seperated by "".

I'm close but can't get it - can you help?

Thanks in advance!
0
Comment
Question by:SStroz
  • 2
3 Comments
 
LVL 34

Accepted Solution

by:
James0628 earned 500 total points
ID: 24428661
The short answer is, use ' (single-quotes) around the string in CR.  For example:

 'to "ABC"'   (that's a single-quote at the beginning and end)


 If you need something more specific, post your formula.

 James
0
 
LVL 7

Author Closing Comment

by:SStroz
ID: 31583354
This worked great!  So simple...yet when you don't know I wasted hours.  When will I learn to get to ee faster!

Thanks again!!!
0
 
LVL 34

Expert Comment

by:James0628
ID: 24483217
You're welcome.

 I know what you mean.  It doesn't matter how simple it is if you don't know it.  :-)

 CR makes this easy because it accepts both single and double-quotes as string delimiters.  You can even use both in the same formula, so if you needed a string that contained "'" (a single-quote inside double-quotes), you could use:

'"' + "'" + '"'    (single-double-single + double-single-double + single-double-single)

 (If you copy and paste that into something else, like the CR formula editor, or just something like Notepad, it's a lot easier to see.  The quotes all blend together in my browser)

 James
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now