On Monday, October 27, 2003, at 09:47 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).
There's absolutely no problem with that. Everything you use in
REALbasic is a class (well, almost) and all of your data is dynamic.
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 :(
OOP is simply a methodology. Classes are just data structures. If
you're familiar with C, you can veeeeery loosely equate a class to a
struct except that a class is concept and infinitely more powerful.
All I can say is read up on OOP. You may want to get the back issues of
REALbasic Developer magazine and read the Object Oriented Thinking
articles.
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
"Life without love is like a tree without blossoms or fruit."
-- Kahlil Gibran
------------------------------------------------------------------------
---
- - -
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|