• 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: How to get the index of an item in a list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get the index of an item in a list


  • Subject: Re: How to get the index of an item in a list
  • From: JollyRoger <email@hidden>
  • Date: Mon, 25 Jun 2001 07:28:39 -0500

On 6/25/2001 2:45 AM, "Greg Strange" <email@hidden> wrote:

> I can see where I could loop through with a counter and get it but isn't
> there a better way?

Nope. As others have said, iterating the list is the way to go here.

Note: You can use the "exit repeat" command to jump out of your repeat loop
once you have found the item you are looking for in the list. That can cut
your search time down considerably if the item happens to be close to the
top of the list.

JR


  • Follow-Ups:
    • Re: How to get the index of an item in a list
      • From: "Greg Strange" <email@hidden>
References: 
 >How to get the index of an item in a list (From: Greg Strange <email@hidden>)

  • Prev by Date: Re: [OS X] scriptable email programs?
  • Next by Date: Re: Finder: Delete files
  • Previous by thread: Re: How to get the index of an item in a list
  • Next by thread: Re: How to get the index of an item in a list
  • Index(es):
    • Date
    • Thread