• 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: Repeat With question (newbie level)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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?


References: 
 >Repeat With question (newbie level) (From: Bill Planey <email@hidden>)

  • Prev by Date: Word Visual Basic/Word gurus questions...
  • Next by Date: Re: Repeat With question (newbie level)
  • Previous by thread: Repeat With question (newbie level)
  • Next by thread: Re: Repeat With question (newbie level)
  • Index(es):
    • Date
    • Thread