delete chunk.

jonathandlynch at gmail.com jonathandlynch at gmail.com
Tue Nov 2 20:35:19 EDT 2010


These are different - item -1 containing empty is different than item -1 not existing

It seems like it is behaving intuitively to me.

The docs might be confusing, though.
Sent from my Verizon Wireless BlackBerry

-----Original Message-----
From: Alex Tweedly <alex at tweedly.net>
Sender: use-revolution-bounces at lists.runrev.com
Date: Wed, 03 Nov 2010 00:23:08 
To: Use Revolution List<use-revolution at lists.runrev.com>
Reply-To: How to use Revolution <use-revolution at lists.runrev.com>
Subject: delete chunk.


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.

The docs say that "delete chunk of container" is equivalent to "put 
empty into chunk of container" - but if I replace it so I do

put "a,b,c" into temp
put empty into item -1 of temp

then I do indeed get "a,b,".
Feels like a bug, and I should put it into QCC - but it's late at night 
and I may be just missing something.
Am I ?

Thanks
-- Alex.
_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


More information about the use-livecode mailing list