• 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: how to get the zero's out of a list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to get the zero's out of a list


  • Subject: Re: how to get the zero's out of a list
  • From: John W Baxter <email@hidden>
  • Date: Fri, 9 Mar 2001 18:32:17 -0800

At 13:12 -0500 3/9/01, Cal wrote:
>I am disappointed that the answers to such a question, asked by what
>appears to be a novice, while offering something that works,
>nevertheless include the use of variable names like "a", "l", and
>"aL".
>[Using "i", "1", and "l" in the same script fragment (and even in the
>same line) makes it hard to distinguish what from what. The same can
>be said for "i" and "a".]

And I was disappointed not to see at least one reply like

set testlist to {"0", "1", "0", "4"}
repeat with anItem in testlist
if contents of anItem is "0" then set contents of anItem to ""
end repeat
testlist

along with probably a sentence or three about those "contents of" phrases
(are both really needed in this case?...I just tossed them in to be "safe").

--John (we don't need no stinkin index) Baxter
--
John Baxter email@hidden Port Ludlow, WA, USA


  • Follow-Ups:
    • Re: how to get the zero's out of a list
      • From: Timothy Bates <email@hidden>
References: 
 >Re: how to get the zero's out of a list (From: Cal <email@hidden>)

  • Prev by Date: FileMaker and Styled Text
  • Next by Date: Helping Newbies (was Re: how to get the zero's out of a list)
  • Previous by thread: Re: how to get the zero's out of a list
  • Next by thread: Re: how to get the zero's out of a list
  • Index(es):
    • Date
    • Thread