• 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 retrieve items from list?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: How to retrieve items from list?


  • Subject: RE: How to retrieve items from list?
  • From: "Goodman, Steve" <email@hidden>
  • Date: Tue, 5 Dec 2000 15:42:27 -0600

> set itemList to {"one", "two", "three", "four", "five"...} -- and
> so on to "fifteen"
>
> How can I structure a repeat loop that will retrieve, incrementally,
>
> left to right, one item with each repetition and make it the value
> of
> a variable (itemName)?

I think this is what you are looking for:

set itemList to {"one", "two", "three", "four", "five"...}

repeat with i from 1 to count of items in itemlist
set itemname to item i of itemlist
display dialog itemname --or do your stuff with it
end repeat


Steve Goodman
Six|12 - THE LTC GROUP

......."Duct tape is like the force, it has a light side and a dark side and
it holds the universe together."------Unknown


  • Prev by Date: Re: How to retrieve items from list?
  • Next by Date: Re: How to retrieve items from list?
  • Previous by thread: Re: How to retrieve items from list?
  • Next by thread: Math/Geometry Guru anyone?
  • Index(es):
    • Date
    • Thread