• 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 23:56:37 -0700

On 1/28/02 4:17 PM, Nigel Garvey <email@hidden>
wrote:

>Interesting. This is the standard behaviour when concatenating records
>directly. If the same label appears in both, it only appears once in the
>combined record and takes the value of the label in the left-hand source
>record.

Curiouser and curiouser.

--Michelle

set MyList to {}
set myFirstRecord to {a:1, b:2}
set mySecondRecord to {a:3, b:4}
set the end of MyList to myFirstRecord
set the end of MyList to mySecondRecord

--> {a:3, b:4}

set MyList to {}
set myFirstRecord to {a:1, b:2}
set mySecondRecord to {a:3, b:4}
set MyList to MyList & myFirstRecord & mySecondRecord

--> {a:1, b:2}

set MyList to {}
set myFirstRecord to {a:1, b:2}
set mySecondRecord to {a:3, b:4}
set the end of MyList to {myFirstRecord}
set the end of MyList to {mySecondRecord}

--> {{a:3, b:4}}

set MyList to {}
set myFirstRecord to {a:1, b:2}
set mySecondRecord to {a:3, b:4}
set MyList to MyList & {myFirstRecord} & {mySecondRecord}

--> {{a:1, b:2}, {a:3, b:4}}

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


  • Prev by Date: AS to create a new AppleMail account
  • Next by Date: Re: Scripting Additions: Embracing the Horror of Unix
  • Previous by thread: Re: can I make a list of records?
  • Next by thread: Re: can I make a list of records?
  • Index(es):
    • Date
    • Thread