Re: How to retrieve items from list?
Re: How to retrieve items from list?
- Subject: Re: How to retrieve items from list?
- From: Yosemite <email@hidden>
- Date: Tue, 05 Dec 2000 12:57:08 -0900
set aList to {"one", "two", "three", "four", "five"}
set aLongString to ""
repeat with anItem in aList
set aLongString to aLongString & anItem
end repeat
-- hcir
mailto:email@hidden
>
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...
>
>
I bought Danny Goodman's book (GREAT!), and am reading and learning
>
as
>
fast as I can -- but mastering this one feat is harder than I
>
imagined.
>
>
Thanks in advance for your kind patience and (hopefully),
>
suggestions.