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 11:21:42 -0600
References: <A647FCC6-08A0-11D8-90CB-000A958557FC at brucemaudesign dot com>
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.

Cheers,
- Joe

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