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