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: Michelle Steiner <email@hidden>
- Date: Mon, 9 Jul 2001 10:37:45 -0700
On 7/9/01 9:48 AM, email@hidden <email@hidden> wrote:
>
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.
It's the same way in 1.6; however, this 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 count xr
--> 3
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------