• 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: Jed Verity <email@hidden>
  • Date: Thu, 08 Mar 2001 17:03:01 -0800

This is the simple traditional way...anyone have a more interesting way w/o
looping?

--begin script
set l to {"0", "1", "0", "4"}

repeat with i from 1 to length of l
tell item i of l to if it = "0" then set item i of l to ""
end
l
--end script

HTH,
Jed

On 3/8/01 7:12 AM, you wanted me to know this:

> Hi all, im having trouble to find the easy solution to get the zero's out of
> a list. I have this:
>
> set a to //filemaker field content// cell "A" of current record
>
> --> becomes {"0", "1", "0", "4"}
>
> set cell "B" of current record to A
>
> --> becomes {"0", "1", "0", "4"}
> but i want {"", "1", "", "4"}
>
>
> How, oh how do i do this ?
>
> Thanks for your time
>
> Best,
> Jacco
> Netherlands
> _______________________________________________
> applescript-users mailing list
> email@hidden
> http://www.lists.apple.com/mailman/listinfo/applescript-users


~)~)~)~)~)~)~)~)~)~)~)~)~)
Jed Verity


  • Prev by Date: Re: TIDs case insensitive?
  • Next by Date: Re: syntax question
  • 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