[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Fwd: HOW Do I Use ' as a literal in a string?
- Subject: Fwd: HOW Do I Use ' as a literal in a string?
- From: Amy Emge <emgeac@MUOHIO.EDU>
- Date: Fri, 18 May 2001 09:11:10 -0400
Scott, I'd say you need four - two for the quotes around the string, and
then two to represent the single tick/apostrophe. Try this instead - it's
a little less confusing.
let $q = ''''
let $user_pwd = 'user ' || $q || 'upload' || $q || ' ' || $q || 'upload' || $q
The $q represents all the tick/apostrophes you need. I tried it and it worked.
Amy Emge
Programmer
Miami University
>Date: Fri, 18 May 2001 08:59:21 -0400
>From: Scott Eubank <SEUBANK@ADVANCEAUTOPARTS.COM>
>Subject: HOW Do I Use ' as a literal in a string?
>Sender:
> "Discussion of SQR, Brio Technology's database reporting
> language"
> <SQR-USERS@LIST.IEX.NET>
>To: SQR-USERS@LIST.IEX.NET
>Reply-to: sqr-users@LIST.IEX.NET
>X-Mailer: Internet Mail Service (5.5.2653.19)
>
>Error in include file "/home/FSDEV/user/sqr/ascftp_hypr.sqc" on line 23:
> (SQR 4008) Unknown function or variable in expression: upldprd'''
>
> let $user_pwd = 'user '''upload''' '''upload''' '
>
> I want $user_pwd to = user 'upload' 'upload'
>
> I am writing a unix script and I need those ' (tick/apostroph) mark to be
>apart of the string and for the life of me I thought the 3 ticks would work
>but it dont.
>
>PLEASE HELP ME with this VERY STUPID Question
>
>
>Thanks
>Scott Eubank