Re: looking for reference to a dictionary

2008-10-22 Thread Michael Ash
On Tue, Oct 21, 2008 at 12:08 PM, Stefan Wolfrum <[EMAIL PROTECTED]> wrote: > Hi all, > > I have an array. Each array entry is a dictionary. Each dictionary has two > key/value pairs (all are strings). > > Now I get from somewhere else the value (a string) corresponding to one of > the keys. It's e

Re: looking for reference to a dictionary

2008-10-21 Thread Ken Thomases
On Oct 21, 2008, at 11:08 AM, Stefan Wolfrum wrote: I have an array. Each array entry is a dictionary. Each dictionary has two key/value pairs (all are strings). Now I get from somewhere else the value (a string) corresponding to one of the keys. It's exactly the same string, content-wise (

Re: looking for reference to a dictionary

2008-10-21 Thread Bill Bumgarner
On Oct 21, 2008, at 9:08 AM, Stefan Wolfrum wrote: Hi all, I have an array. Each array entry is a dictionary. Each dictionary has two key/value pairs (all are strings). Now I get from somewhere else the value (a string) corresponding to one of the keys. It's exactly the same string, conten

Re: looking for reference to a dictionary

2008-10-21 Thread Alex Heinz
You can't. Iterating through the array is the only way, unless the dictionaries are organized in some special way. Out of curiosity, why not just use a single dictionary, instead of an array of dictionaries? HTH, Alex On Oct 21, 2008, at 12:08 PM, Stefan Wolfrum wrote: Hi all, I have an a

looking for reference to a dictionary

2008-10-21 Thread Stefan Wolfrum
Hi all, I have an array. Each array entry is a dictionary. Each dictionary has two key/value pairs (all are strings). Now I get from somewhere else the value (a string) corresponding to one of the keys. It's exactly the same string, content-wise (not address-wise). What I need: a referenc