gettingstarted
[Top] [All Lists]

Re: array/dictionary advice needed

To: "Getting Started" <gettingstarted at lists dot realsoftware dot com>
Subject: Re: array/dictionary advice needed
From: "Joseph J. Strout" <joe at realsoftware dot com>
Date: Mon, 27 Oct 2003 13:27:09 -0600
References: <A647FCC6-08A0-11D8-90CB-000A958557FC at brucemaudesign dot com> <a05300b2dbbc304743d87 at [10 dot 10 dot 13 dot 3]> <E5CC73A5-08AD-11D8-90CB-000A958557FC at brucemaudesign dot com>
At 1:46 PM -0500 10/27/03, Mark Guertin wrote:

Thanks Joe ... is it possible to have multiple ones tho? As in something like :

foo(0)=array{"rowid" => "1","name" => "Mark", "occupation" => "geek"}
foo(1)=array{"rowid" => "2","name" => "Joe", "occupation" => "RB Guy"}

Yes; just declare foo as an array of dictionaries.

This is the functionality that I'm crying for ;) I guess this means that I'm asking if it's possible to store references to a dictionary within an array or some other form of control I can step through easily?

But of course. Dictionaries are objects; you can store references to objects in an array just fine.

--
,------------------------------------------------------------------.
|    Joseph J. Strout           REAL Software, Inc.                |
|    joe at realsoftware dot com       http://www.realsoftware.com        |
`------------------------------------------------------------------'

- - -
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>