[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: [sqr-users] Writing a single quote in a string



The shorthand method to do this, also mentioned in the archives, is to 
use 2 single quotes in anyplace that you want one single quote in your 
string.

So to have a string that looks like...

   '3207368'10001 'HRAF

you would code...

   let $xxx = '''3207368''10001 ''HRAF'



Griffith, Peggy wrote:
> Hi - my SQR is writing a text file and I need to include a single quote
> as part of a string; does anyone know how to do that?  
>
>  
>
> Example:
>
> let xxx = ''3207368'10001 'HRAF'
>
> (after the first single quote there is supposed to be a single quote,
> and then within the string there are 2 other single quotes as well as a
> space).
>
>  
>
> I have been told to try using the single quote within single quotes
> which does not work, also told to try 4 single quotes before the string
> but that does not work.
>
>  
>
> Peggy Griffith
>
> Business Systems Analyst
>
> Sappi Fine Paper North America
>
> 179 John Roberts Road
>
> South Portland, Maine 04016
>
> Tel: 207.854.7466
>
>  
>
>  
>
>
> This message may contain information which is private, privileged or 
>confidential and is intended solely for the use of the individual or entity 
>named in the message. If you are not the intended recipient of this message, 
>please notify the sender thereof and destroy / delete the message. Neither the 
>sender nor Sappi Limited (including its subsidiaries and associated companies) 
>shall incur any liability resulting directly or indirectly from accessing any 
>of the attached files which may contain a virus or the like.
>
> _______________________________________________
> sqr-users mailing list
> sqr-users@sqrug.org
> http://www.sqrug.org/mailman/listinfo/sqr-users
>
>   


-- 
-----------------------------------------------------------------------
Donald Mellen  | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/
donm@ontko.com |  "In the beginning, there was nothing, which exploded"


_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users