• 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: can I make a list of records?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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. |
----------------------------------------------------------------------


  • Prev by Date: Re: Speed of applets vs. compiled scripts
  • Next by Date: Re: Can any tell me about error -1701?
  • Previous by thread: can I make a list of records?
  • Next by thread: Re: can I make a list of records?
  • Index(es):
    • Date
    • Thread