Re: Repeat With question (newbie level)
Re: Repeat With question (newbie level)
- Subject: Re: Repeat With question (newbie level)
- From: g3pb <email@hidden>
- Date: Wed, 14 Feb 2001 08:10:15 -0900
-- for example
set ans to ""
set chList to {"a", "b", "c", "d"}
repeat with anitem in chList
set ans to ans & anitem
end repeat
-- hcir
mailto:email@hidden
Made with a Mac!
>
I want to seriously economize some code that runs through
>
26 steps, a search/replace function incorporating each letter
>
of the alphabet. The only difference in the expression of each
>
of the steps is the letter.
>
>
Is there a way to set each alphabetic character into a list
>
{"a", "b", "c", "d", etc.} and have the variable be redefined
>
to the next letter in the list upon the completion of a step
>
until the last letter has been used? I know this is possible
>
with numbers (ie,: Repeat with i from 1-9), but how about letters?