Re: Two Questions
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. |
----------------------------------------------------------------------