delete chunk.

Jim Ault jimaultwins at yahoo.com
Tue Nov 2 23:40:51 EDT 2010


Also try

put the number of items in "a,b,c" \
   && the number of items in "a,b," \
   && the number of items in "a,b"


On Nov 2, 2010, at 5:45 PM, J. Landman Gay wrote:

> 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

Jim Ault
Las Vegas






More information about the use-livecode mailing list