At 9:14 PM -0800 3/27/01, Kerry Thompson wrote:
>I should know how to do this, I know... I think I'm having a Senior Moment.
>
>I have a property list with multiple items having the same property.
>Something like [#roster: [#name: "Tab"], [#name: "Jakob"], [#name:
>"Roy"]]. It's actually a considerably more complex list, but that's
>the idea--multiple items with the #name property.
>
Kerry,
If ths is your list, then you are definitely having a "senior
moment". As you've defined it here, your list is both a property
list and a linear list (the first item is a formed as a property
list, and the other three are linear). So, what does the list really
look like, is it more like this:
theList = [#roster:[[#name:"Tab"], [#name:"Jacob"], [#name:"Roy"],
[#name:"Irv"]]]
If so, then you can do something like this:
theRosterList = theList[#roster]
nItems = count(theRosterList)
repeat with i = 1 to nItems
thisListEntry = theRosterList[i]
theName = thisListEntry[#name]
-- do whatever you want this theName
end repat
Irv
--
Lingo / Director / Shockwave development for all occasions.
(Home-made Lingo cooked up fresh every day just for you.)
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]