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 13:46:38 -0500
References: <A647FCC6-08A0-11D8-90CB-000A958557FC at brucemaudesign dot com> <a05300b2dbbc304743d87 at [10 dot 10 dot 13 dot 3]>
On Oct 27, 2003, at 12:21 PM, Joseph J. Strout wrote:

At 12:11 PM -0500 10/27/03, Mark Guertin wrote:

I'm still a little bit perplexed that there is not more advanced array handling for RB :( I'm very used to being able to use simple mixed arrays with definable keys to store my (usually small) datasets for manipulation, like ( from php):

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

That's not an array, that's a "map" or "dictionary." It's a set of key/value pairs. This is what the Dictionary class is for.


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


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?

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>