What Jacque said.
answer the number of items of "1,2," --give "2" Same with line delimiters. Craig Newman -----Original Message----- From: J. Landman Gay <jac...@hyperactivesw.com> To: How to use LiveCode <use-livecode@lists.runrev.com> Sent: Sat, Mar 17, 2012 12:35 pm Subject: Re: Failing to understand the oddities of the "line" chunk 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 _______________________________________________ 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