× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Title: RE: Using quotes in a literal

Lessee if I can be the first of 50 replies to this question!

There are a couple of different ways to skin this cat, and I'm stubborn-headed enough to tell you that MY WAY IS BEST!  <TIC>

Eval     Astring = 'This ''A'' is enclosed in single quotes.'
produces:  This 'A' is enclosed in single quotes.

Note that this is NOT using one double quote on each side of the A, but rather two single quotes.

Others will suggest using a constant to define a single quote, which I find maddening when having to work with such source.  Contrast my example above with this one:

Eval     Astring = 'This ' + @sq + 'A' + @sq + ' is enclosed in single quotes.'

where @sq is a constant with a value of a single quote.

I rest my case.  ;-)

Note that this same issue exists in CL as well.

Dan Bale
IT - AS/400
Handleman Company
248-362-4400  Ext. 4952
D.Bale@Handleman.com
  Quiquid latine dictum sit altum viditur.
  (Whatever is said in Latin seems profound.)

-------------------------- Original Message --------------------------


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.