Re: can I make a list of records?
Re: can I make a list of records?
- Subject: Re: can I make a list of records?
- From: Michelle Steiner <email@hidden>
- Date: Mon, 28 Jan 2002 10:50:59 -0700
On 1/28/02 9:28 AM, James Sentman <email@hidden> wrote:
>
set MyList to MyList & MyFirstRecord & MySecondRecord just gives me a
>
regular list of strings with 4 items in it.
Interesting; with AS 1.8.2b1, all I get is the first record; mylist and
MyFirstRecord are identical.
set myFirstRecord to {name:"jack", age:"32"}
set mySecondRecord to {name:"peter", age:"41"}
set MyList to myFirstRecord & mySecondRecord
MyList = myFirstRecord
--> true
This is true even if I concatonate literals instead of variables.
This happens if the labels are the same. If the labels differ, then the
two records become one record.
set MyList to {name:"peter", age:"41"} & {foo:"jack", bar:"32"}
--> {name:"peter", age:"41", foo:"jack", bar:"32"}
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------