• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: count of items in a reference to a list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >count of items in a reference to a list (From: email@hidden)

  • Prev by Date: Re: Insert Pic in MS WORD & information dialog - thanks
  • Next by Date: Re: Does Quark 3.32 support Program Linking
  • Previous by thread: count of items in a reference to a list
  • Next by thread: Re: count of items in a reference to a list
  • Index(es):
    • Date
    • Thread