Suppose your application needs a list of lists. I'm having trouble figuring out 
how and where one persists object data--whether using a database or some other 
file format for storage. 
 
Many examples illustrate the point but, for the sake of argument, imagine a 
classroom with students completing assignments. An Assignment class could 
include fields for pointsEarned, pointsPossible, etc. A Student class would 
include a field containing a (TObjectList descended) list of Assignment 
objects. A Classroom object, in turn, would include a field containing 
(TObjectList descended) list of Student objects. 
 
Now, how does one go about saving all this in a file? It seems like a Classroom 
object, when saved, would need a field made up of Student objects which, in 
turn, requires a field of Assignment objects. 
 
Can you sense my confusion? I'm used to database (or file) fields made up of 
strings, integers, memos, etc. I don't understand how fields made up of object 
lists would work ... 
 
As always, thanks in advance -- Al
_________________________________________________________________
Add some color. Personalize your inbox with your favorite colors.
www.windowslive-hotmail.com/learnmore/personalize.html?locale=en-us&ocid=TXT_TAGLM_HMWL_reten_addcolor_0507
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to