• 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: Two Questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Two Questions


  • Subject: Re: Two Questions
  • From: Michelle Steiner <email@hidden>
  • Date: Wed, 14 Feb 2001 07:42:09 -0800

On 2/14/01 6:21 AM, Serge Belleudy-d'Espinose <email@hidden> wrote:

>Works, slowly. Then another solution based on TIDs

> on remove_from_list (xItem, xList)

This doesn't work right for me.

if xItem is a string, it returns <<"">> in its place

set thelist to "c"
set itemToRemove to {"a","b","c","d","e"}
remove_from_list (xItem, xList)

--> {"a","b","","d","e"}

Also, any numbers in the list get converted to strings, including the
xItem if it is a number.

set thelist to {"one", "two", 3.1, "four"}
set itemToRemove to 3.1
remove_from_list(itemToRemove, thelist)
--> {"one", "two", "3.1", "four"}

set thelist to {"one", "two", 3.1, "four"}
set itemToRemove to "two"
remove_from_list(itemToRemove, thelist)
--> {"one", "", "3.1", "four"}

--Michelle

----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spirtual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------


  • Prev by Date: download URL
  • Next by Date: iMovie and Applescript
  • Previous by thread: Re: Two Questions
  • Next by thread: Re: Two Questions
  • Index(es):
    • Date
    • Thread