Re: coercing a list
Re: coercing a list
- Subject: Re: coercing a list
- From: Michelle Steiner <email@hidden>
- Date: Wed, 29 Aug 2001 09:25:20 -0700
On 8/29/01 7:16 AM, Ray Phillips <email@hidden> wrote:
>
Why does
>
>
{"a", "b", "c"} as string
>
>
yield "a b c" instead of "abc" ?
It yields "abc" on my system. Have you been modifying text item
delimiters?
>
I'd like to truncate a string using this statement
>
>
copy ((characters 1 thru ((number of characters in nn) - 1)) of nn) as
>
string to nn
Well, you could simplify that to
copy text 1 thru -2 of nn to nn
then you won't have to worry about characters or lists, or anything like
that.
Or if you really want to use characters, you can do it this way:
copy (reverse of rest of reverse of characters of nn) as text to nn
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------