 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
xxx@yahoo.com Guest
|
Posted: Sat Sep 10, 2005 3:14 pm Post subject: TList, TObjectList, etc - which to use |
|
|
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
|
Posted: Sat Sep 10, 2005 8:18 pm Post subject: Re: TList, TObjectList, etc - which to use |
|
|
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
|
Posted: Sat Sep 10, 2005 10:18 pm Post subject: Re: TList, TObjectList, etc - which to use |
|
|
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 |
|
 |
|
|
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
|
|