multi-line constants? (for RSA keys)
Dr. Hawkins
dochawk at gmail.com
Sat Mar 22 22:58:04 EDT 2014
On Sat, Mar 22, 2014 at 5:35 PM, Alex Tweedly <alex at tweedly.net> wrote:
> constant doesn't allow any form of expression, you can't even do
> constant mykey = "abc" & "def"
>
*sigh*
I was hoping that was doing something wrong.
>
> A "clean" solution ?
> - assign to a variable instead
>
This is what I've been doing
> - custom prop
> - since you're generating it externally - put it in a fixed-name file,
> and have your script read that file in
>
But then it would be readable :)
>
> btw if I take the above code, and convert from using a constant to a
> variable, I'd get
> put "-----BEGIN PUBLIC KEY-----" \
> & "ABC123"\
> & "DEF456"\
> & "-----END PUBLIC KEY-----" into myVar
>
> but that means it's become a single line, instead of 4 lines.
> Should it be
> put "-----BEGIN PUBLIC KEY-----" &CR& \
> & "ABC123" &CR& \
> & "DEF456" &CR& \
> & "-----END PUBLIC KEY-----" into myVar
>
Yes, I blew that typing it in . . .
--
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
More information about the use-livecode
mailing list