Re: Advice on storage and retrieval

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




"Steve Gerrard" <mynamehere@xxxxxxxxxxx> wrote in message
news:msadnVf-gZR1qt7bnZ2dnUVZ_hynnZ2d@xxxxxxxxxxxxxx

"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
was
required by calling operation,
since you can't assign to an array I've always seen variant used for
return,
then i was thinking to store "anything" in the data, the Data item
property
had 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
for the
things being added to the collection or list, rather than for the list or
collection class itself

2) you can make classes for storing "anything", and if they implement the
right
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


.



Relevant Pages

  • Re: ifconfig(8) interface description field
    ... associate a description string with each interface - where interface ... can be a physical port, or for instance a VLAN based interface. ... and store the actual data in a file maybe. ...
    (freebsd-stable)
  • Re: ifconfig(8) interface description field
    ... associate a description string with each interface - where interface ... can be a physical port, or for instance a VLAN based interface. ... and store the actual data in a file maybe. ...
    (freebsd-stable)
  • Re: USING A PUSH BUTTON
    ... Use findobjto find the handles of the second interface, ... To "press" a button in another interface, ... its callback using a function handle rather than a string. ... store appdata or store data in handles that you do not know ...
    (comp.soft-sys.matlab)
  • Re: Code to delete/unlink Linked tables
    ... Public intLinkODBCTables As Variant, intLinkDB2Tables As Variant ... Public strLinkBackendDB As String, strLinkDSNname As String, strLinkLibName ... ' MsgBox "This database is in MDE format...I will delete/recreate ODBC ... Public Sub fncLinkDB2Table() ...
    (microsoft.public.access.modulesdaovba)
  • Re: OPENFILENAME A P I. User cancels ?
    ... The variable FName will be a Boolean False if no file was selected or a String containing the fully qualified file name if the user selectes a file. ... Const ahtOFN_OVERWRITEPROMPT = &H2 ... Function GetOpenFile(Optional varDirectory As Variant, ... Dim strFilter As String ...
    (microsoft.public.excel.programming)