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 12:47:10 -0500
References: <077B1F6E-08A2-11D8-805A-000A95A5E76E at freaksw dot com>
On Oct 27, 2003, at 12:21 PM, Seth Willits wrote:

On Monday, October 27, 2003, at 09:11 AM, Mark Guertin wrote:

This sort of behaviour ... so I guess the question is can I get this sort of functionality without having to go to 3rd party addons?

Welcome to Object Oriented Programming.


Create a class for the data you're going to hold (I'm assuming you're storing the fields in a row in your database) and then use a dictionary to hold instances of the class.

I'm not sure I follow you here ... the data will be dynamic (it is pulled from MySQL).

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

If there are any examples to be found online I would be most appreciative, but I haven't found anything like this yet (that wasn't an addon).

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>