Re: How to retrieve items from list?
Re: How to retrieve items from list?
- Subject: Re: How to retrieve items from list?
- From: Michelle Steiner <email@hidden>
- Date: Tue, 5 Dec 2000 13:37:59 -0800
On 12/5/00 1:08 PM, Michael Sidoric <email@hidden> wrote
>
Assuming I have a list containing say, 15 items:
>
>
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)?
>
>
For instance repeat one would retrieve string "one", second repeat
>
would
>
retrieve string "two", and so on...
set itemList to {"one", "two", "three", "four", "five"}
repeat with itemName in itemList
display dialog itemName
-- or do something more useful with the data
end repeat
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | Hard as it may be to believe, my |
| email@hidden | life has been based on a true story. |
----------------------------------------------------------------------