RE: how to get the zero's out of a list
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