On 3/17/12 8:16 AM, Alex Tweedly wrote:
This code
put "a" & CR into t; put "b" into line 2 of t; put t
produces (as I would expect)
a
b
BUT
put "a" & CR into t; put "b" into line 2 to -1 of t; put t
produces
ba
Why should adding the "to -1" change this to put the new data before
what was there before ?
It's because of how the engine ignores trailing delimiters. The variable
t contains only one line, so "line 2 to -1" evaluates to "line 2 to 1".
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
_______________________________________________
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