""e&"
Dar Scott
dsc at swcp.com
Mon Dec 30 23:40:00 EST 2002
On Monday, December 30, 2002, at 02:45 PM, Ivers, Doug E wrote:
> answer "She said, ""e&"I do.""e
>
> Seems like there should be a shorthand way of coding ""e&". I use
> it frequently and it makes things difficult to read. Javascript
> handles this nicely by allowing the use of single quotes within double
> quotes.
Here is a cool feature. I dismissed format() when I first saw it as
catering to C programmers, but so far it seems to be cleaner and better
than the C format. For some reason, this generates what you want:
put format("She said, \"I do.\"")
Think that is weird? This does, too:
put format("She said, \"I" & "\"")
So this works:
put format( format( "She said, \\\"I" & "\\\"" ) )
The first parameter may be a variable and other expressions, but the
language seems to shift to a special mode for literals. Or something.
I'm not sure what is going on.
What will this create?
put format( line 1 of "She said, \"I do.\"\nThat was 18 years ago.")
> P.S. That was 18 years ago.
Much cooler than my format() tip!
Dar Scott
More information about the use-livecode
mailing list