delete chunk.

J. Landman Gay jacque at hyperactivesw.com
Tue Nov 2 20:45:51 EDT 2010


On 11/2/10 7:23 PM, Alex Tweedly wrote:
>
> Hmmm ... what should I get from
>
> put "a,b,c" into temp
> delete item -1 of temp
>
> I think temp should now have "a,b," - i.e. the last item has
> disappeared, but the (now) trailing item delimiter should still be there.
>
> However, I actually get that temp has "a,b" - the last comma has also
> disappeared.

That's correct. Removing the last chunk of any string also removes the 
delimiter. There have been many debates on whether this is correct or 
not, but it's been that way in every xtalk since the beginning.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



More information about the use-livecode mailing list