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

[sqr-users] Re: Retain leading zeros's for .xls output from SQR --string literal concatenations



On Mon, Aug 29, 2005 at 08:47:34AM -0700, Gowri Srinivas wrote:
> suggestion worked. For the others, here's the code that worked:
>  
> let $print-invoice = '=' || '"' || $F.INVOICE || '"'

It's been a while since I posted my periodic "concatenating two string
literals" message....  For what it's worth, here it is again:

In SQR, whenever a string literal is being concatenated to another
string literal, one can always combine them into a single literal.  This
will, at the very least, save typing of several punctuation symbols (and
usually makes the expression easier to read).

So, the example above can also be expressed as:

  let $print-invoice = '="' || $F.INVOICE || '"'


                                                Nathan
----------------------------------------------------------------------------
Nathan Stratton Treadway  -  nathanst@ontko.com  -  Mid-Atlantic region
Ray Ontko & Co.  -  Software consulting services  -   http://www.ontko.com/
 GPG Key: http://www.ontko.com/~nathanst/gpg_key.txt   ID: 1023D/ECFB6239
 Key fingerprint = 6AD8 485E 20B9 5C71 231C  0C32 15F3 ADCD ECFB 6239

Attachment: pgp00000.pgp
Description: PGP signature

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