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: Seth Willits <seth at freaksw dot com>
Date: Mon, 27 Oct 2003 15:59:26 -0800
On Monday, October 27, 2003, at 11:37 AM, Will Leshner 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.

Ok. This is way way better advice than my class idea.

Certainly a good idea and one I didn't think of. Unless some kind of methods are needed to manipulate the data, I recommend it also.



Seth Willits
------------------------------------------------------------------------ ---
President and Head Developer of Freak Software - http://www.freaksw.com
REALbasic Guru at ResExcellence - http://www.resexcellence.com/realbasic
Webmaster for REALbasic Game Central - http://www.freaksw.com/rbgames

"Relations are simply a tedious pack of people, who haven't got the
 remotest knowledge of how to live, nor the smallest instinct about when
 to die."
    -- Algernon, The Importance of Being Earnest
------------------------------------------------------------------------ ---




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