RE: How to retrieve items from list?
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