vProp = firstList[#county]
WantedValue = secondlist[vProp]

or as one statement:
WantedValue = secondlist[ firstList[#county] ]

/Christoffer

----- Original Message ----- 
From: "Lee Blinco" <[EMAIL PROTECTED]>


> Hi all,
> a problem i always seem to face but seem to sort out in different ways, is
> how to take a prop value from one list ie
> firstlist = [#county:"beds",#town:"ampthill"]
>  and then to use this value as a property in a second list, (ie for the
> county property of firstlist i would take "beds" in this instance)
> ie
> secondlist = [#beds:[some_list_of_values_just_relevant_to_beds]]
>
> how can i acheive this ?


[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/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!]

Reply via email to