Re: count of items in a reference to a list
Re: count of items in a reference to a list
- Subject: Re: count of items in a reference to a list
- From: Deivy Petrescu <email@hidden>
- Date: Mon, 9 Jul 2001 19:06:34 -0400
In testing my purgeFromList handler against Victor's deleFromList, I noticed
unexpected behavior. Is this a bug, or not (tested with AS 1.5.5 and 1.6)?
set x to {"a", "b", "c"}
set countx to count of items in x
log countx
--> 3
set xr to a reference to x
set countxr to count of items in xr
--> every item of x of<<script>> doesn't understand the count message.
Jeff Baumann
email@hidden
www.linkedresources.com
Jeff,
I believe count items is buggy when it comes to references. the
following works:
set x to {"a", "b", "c"}
set countx to count of items in x
log countx
--> 3
set xr to a reference to x
set countxr to length of xr
--> 3
Deivy Petrescu
http://www.dicas.com
Tips for your Mac.
Dicas para o seu Mac.
mailto:email@hidden
mailto:email@hidden