Solved

How to evaluate a string that contains single quote when that is the  special characters used to define a string value.

Posted on 2014-07-21
3
284 Views
Last Modified: 2014-07-21
All,
I have a string that contains a single quote in it (EX:  Master's).  I need to evaluate a data item value to that string.  The problem is that the special character used to define string value is the single quote (').  Is there a way for me to evaluate this string as is without having to temporarily strip out the character to do the evaluation.  If not what is the simplest way to do the evaluation?  Thanks.

Ken
0
Comment
Question by:ktQueBIT
  • 2
3 Comments
 
LVL 21

Accepted Solution

by:
Randy Poole earned 500 total points
ID: 40209664
just double the '' as in 'Master''s' when evaluating it
0
 

Author Comment

by:ktQueBIT
ID: 40209721
Randy.  Thanks I think I tried every combination except that one.   You just saved me some major aggravation!!
0
 
LVL 21

Expert Comment

by:Randy Poole
ID: 40209725
No problem :)
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to increase the row limit in Jasper Server.
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

839 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