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: Will Leshner <leshner at ljug dot com>
Date: Mon, 27 Oct 2003 10:00:24 -0800
References: <077B1F6E-08A2-11D8-805A-000A95A5E76E at freaksw dot com> <96F8C274-08A5-11D8-90CB-000A958557FC at brucemaudesign dot com>

On Oct 27, 2003, at 9:47 AM, Mark Guertin wrote:

How would I be able to setup this multidimensional data with keys as I was looking for by making a class for it? I'm pretty new to OO stuff, so sorry if this sounds really lame :(


You'd make a class to hold one record, basically. Each property of the class would be a field in the record (I guess you wouldn't have to put every field in there, just the ones you care about). Then, when you pull a record out of the database, make a new instance of your class, fill its properties with the data from the record, and then stick it into the dictionary with the rowid as the key.



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