Re: Advice on storage and retrieval
- From: "MP" <NoSpam@xxxxxxxxxx>
- Date: Thu, 10 May 2007 11:30:16 -0500
"Steve Gerrard" <mynamehere@xxxxxxxxxxx> wrote in message
news:msadnVf-gZR1qt7bnZ2dnUVZ_hynnZ2d@xxxxxxxxxxxxxx
was
"MP" <NoSpam@xxxxxxxxxx> wrote in message
news:ekb%231PwkHHA.3704@xxxxxxxxxxxxxxxxxxxxxxx
:-) sure looks like that eh?
well, i was just looking to get a list of the keys/ and or data/ if that
return,required by calling operation,
since you can't assign to an array I've always seen variant used for
propertythen i was thinking to store "anything" in the data, the Data item
for thehad to be variant also to avoid type mismatch or ETC
I guess in that interface i was already thinking about implemening using
collections and since collection items are variant...and so on....
<g>
I think my points were
1) you may get more use out of an interface if you think about using it
things being added to the collection or list, rather than for the list orright
collection class itself
2) you can make classes for storing "anything", and if they implement the
interface, you can store any of them in your collection or list.
Hi Steve,
appreciate your hanging in there with me...
trying to understand it all and get it in my pea brain <g>
to go with your idea
Interface:
IListItem
Properties
Key as Long (or string)
' here I'm still confused....
...don't I need Item (as variant) to store and return the actual "thing"
that was stored????
... and doens't it have to be as Variant so different
implementations can store different types???
cIntList, cStringList, cObjectList, etc????
or are you saying the .Item property only goes in the concrete class
implementation?
so in cStringList for example I'd have
..Item as String
???
then in the implementation class are you still using Collection to store the
cListItems????
what about a Save and Restore method pair for persistence?
would that also want to live in the IListItem interface???
sorry just a little dense here...
appreciate your help and ideas!
:-)
Mark
.
- Follow-Ups:
- Re: Advice on storage and retrieval
- From: Steve Gerrard
- Re: Advice on storage and retrieval
- References:
- Advice on storage and retrieval
- From: MP
- Re: Advice on storage and retrieval
- From: MP
- Re: Advice on storage and retrieval
- From: Steve Gerrard
- Re: Advice on storage and retrieval
- From: MP
- Re: Advice on storage and retrieval
- From: Steve Gerrard
- Advice on storage and retrieval
- Prev by Date: Re: Removing non-ASCII characters in a file
- Next by Date: Re: Advice on storage and retrieval
- Previous by thread: Re: Advice on storage and retrieval
- Next by thread: Re: Advice on storage and retrieval
- Index(es):
Relevant Pages
|