| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
At 1:28 am -0600 30/10/02, Jeffrey Mattox wrote:
Is there a way to get a list of the names of the name/value pairs in a record?
If you are responsible for creating the record, then instead of creating a record, create a list and use the odd-numbered items for the keys and the even-numbered for the values. Here's an example I posted a couple of weeks ago:
set {key_, value_} to {"key1", false}
set array_ to {"key1", "value1", "key2", "value2"}
repeat with i from 1 to count array_
if i mod 2 is 1 then
if item i of array_ is key_ then
set value_ to item (i + 1) of array_
exit repeat
end if
end if
end repeat
if value_ is not false then return value_
| References: | |
| >Re: Listing the names contained in a record (From: John Delacour <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.