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: Mark Guertin <guertin at brucemaudesign dot com>
Date: Mon, 27 Oct 2003 14:39:19 -0500
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> <a05300b31bbc321df2279 at [10 dot 10 dot 13 dot 3]>
On Oct 27, 2003, at 2:27 PM, Joseph J. Strout wrote:

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.

Ahhhh, yes!!  Why didn't I think of this ... thanks again Joe

/me smacks self and goes to find some good reading for OOP

Mark



- - -
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>