[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: Using { and } in a string
Try this:
let $lbracket = '{'
let $rbracket = '}'
let $mystring = $lbracket || 'HELLO' || $rbracket
show '$mystring = ' $mystring
______________________________ Reply Separator _________________________________
Subject: Using { and } in a string
Author: Non-HP-jradwan (jradwan@CONCENTRIC.NET) at HP-PaloAlto,mimegw9
Date: 6/9/98 1:07 PM
In my SQR program I need to use the two
curly-bracket characters { and } in a string.
However, SQR is interpreting these as
delimiters for substition variables and
compiling with an error.
I've tried using two in a row, similar to how
you would place an exclamation point or
single-quote in a string, with no luck. I've
also tried using ENCODE to encode the
ASCII values (123 and 125) into my string,
again, no luck.
Can anyone offer any hints on how I would
accomplish this, if it is even possible?
Thanks,
Jeremy
for example:
let $Command = 'find /usr/jradwan -mtime +30 -exec rm {} \;'
Error on line 246:
(SQR 4707) No value found for substitution variable: {}