• 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: Tue, 29 Jan 2002 10:44:28 -0700

On 1/29/02 9:25 AM, Nigel Garvey <email@hidden>
wrote:

>>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}
>
>This isn't MyList, but the result of setting the end of it to
>mySecondRecord.

*nod*

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
MyList

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

>>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}}
>
>Again, the result of setting the *end* of MyList.

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}
MyList

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

>Maybe {} is interpreted as a list or
>a record according to the circumstances.

I believe that's what the ASLG says.

--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: storing last date ran as a property
  • 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