BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TList, TObjectList, etc - which to use

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OO design
View previous topic :: View next topic  
Author Message
xxx@yahoo.com
Guest





PostPosted: Sat Sep 10, 2005 3:14 pm    Post subject: TList, TObjectList, etc - which to use Reply with quote



I want a non-visual "collection" class that will contain items with
fields I'll need to search on. Think Fleet Management here, with
collection data retrieved from the DB. I'm in Delphi7 right now.
ex:
TVEHCollection
fVEHNo
fCorporationNo
fVIN
fMake
fColor
fBodyStyle (one of a set)
fStatus
fInsPolicyNos (another collection!)

I'll need to search on MAKE in one instance, and VIN in another
instance, and maybe COLOR in a third, as well as maintain the
InsPolicyNos for a selected VIN. Most (not all) of the fields will be
strings, and there could be up to 1000 items in the collection.

My question relates to basing the class on TList, TObjectList or
TStringList (with attached objects), or anything else. Are there
distinct properties/behaviors of each class that should guide my
decision on which to use... ie, sorting the collection for display by
"fOwner" or "fColor", or when destroying such a class? Is there a
memory-space issue among the base-class choices?

Thanks!
JJ
Back to top
Riki Wiki
Guest





PostPosted: Sat Sep 10, 2005 8:18 pm    Post subject: Re: TList, TObjectList, etc - which to use Reply with quote



Hoi JJ

Take a look here:
<http://tinyurl.com/8m5nw>
which links to
<http://delphi.wikicities.com/wiki/Delphi_Newsgroups>
Back to top
Matt
Guest





PostPosted: Sat Sep 10, 2005 10:18 pm    Post subject: Re: TList, TObjectList, etc - which to use Reply with quote



On Sat, 10 Sep 2005 15:14:22 GMT, [email]xxx (AT) yahoo (DOT) com[/email] wrote:

Quote:
I want a non-visual "collection" class that will contain items with
fields I'll need to search on. Think Fleet Management here, with
collection data retrieved from the DB. I'm in Delphi7 right now.
ex:
TVEHCollection
fVEHNo
fCorporationNo
fVIN
fMake
fColor
fBodyStyle (one of a set)
fStatus
fInsPolicyNos (another collection!)

....
JJ

Sorry! "TVEHCollection" above s/b "TVEHItem".
Getting ahead of myself <g>


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OO design All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.