Over the years I've had many occasions where I would have loved to have
something like bash's heredoc, a way of putting a block of text within
code but without the encumbrance of concatenation, as requested here:
https://quality.livecode.com/show_bug.cgi?id=17471
Another option is to turn the problem inside-out, in which we have a
block of text in which we can sprinkle LiveCode commands.
Superficially, we have this now with the merge function.
But the merge function has many limitations, such as no means of using
conditionals or loops with text blocks between those elements.
However,
LiveCode Server has no such limitation.
You can write:
<? if tVar = 1 then ?>
Here's some text
<? else ?>
Here's some other text
<?end if ?>
It would be ideal to have the merge function outfitted with this sort of
logic handling, but there may be backwards-compatibility issues I'm not
thinking of.
So maybe at a minimum we could have some other means of using LC
Server's powerful ability to mix text and code together, with something
like:
do tVarContainingLCServerCompatibleText as "LiveCode Server"
Thoughts?
--
Richard Gaskin
Fourth World Systems
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode