Results 1 to 5 of 5

Thread: Alternative to Dictionary or Collection ?

  1. #1

    Thread Starter
    Frenzied Member TheBionicOrange's Avatar
    Join Date
    Apr 2001
    Location
    Cardiff, UK
    Posts
    1,818

    Alternative to Dictionary or Collection ?

    I have a bunch of records (number could vary) which I want to store temporarily.

    Normally I would use either a Dictionary or a Collection object, but each record I want to store has 7 associated fields.

    Does anyone know of an alternative to Dictionaries/Collections that could handle multiple fields ?


    TIA ......

  2. #2

    Thread Starter
    Frenzied Member TheBionicOrange's Avatar
    Join Date
    Apr 2001
    Location
    Cardiff, UK
    Posts
    1,818
    OK I forgot to mention arrays .... doh !

    I will probably use an array, but have to keep potentially removing/adding records until the user is happy with their selection, which could get a bit messy ......


    .... oh well

  3. #3
    Randalf the Red honeybee's Avatar
    Join Date
    Jun 2000
    Location
    off others' brains
    Posts
    4,345

    Well ...

    I remember having a DLL for some object called FlexiBag. It was supposed to be an improved and better form of a collection object.

    Dunno the URL or such other info though. I might have the DLL at office, but not sure. Try asking Parksie about it. My guess is he had suggested it in some old old post.

    .
    I am not a complete idiot. Some parts are still missing.
    Check out the rtf-help tutorial
    General VB Faq Thread
    Change is the only constant thing. I have not changed my signature in a long while and now it has started to stink!
    Get more power for your floppy disks. ; View honeybee's Elite Club:
    Use meaningfull thread titles. And add "[Resolved]" in the thread title when you have got a satisfactory response.
    And if that response was mine, please think about giving me a rep. I like to collect them!

  4. #4

    Thread Starter
    Frenzied Member TheBionicOrange's Avatar
    Join Date
    Apr 2001
    Location
    Cardiff, UK
    Posts
    1,818
    OK cheers Bee !

    I'll have a search around, then ask Parksie if I can't find it

  5. #5
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    How about creating a UDT with the fields you need to store, then store the UDT in a collection?
    Or, you can create a Class that you can then store in the collection.
    Or, as you mentioned, an array.
    Or, an XML document.
    Or, you can use a recordset.
    Just some ideas.....
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width