Results 1 to 4 of 4

Thread: Collections vs. Databases (what to use)

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2003
    Posts
    11

    Question Collections vs. Databases (what to use)

    I'm trying to write a program that will track individual jobs with their Materials used and Expenses used too. I want to keep a list of all the materials in inventory and then in the job details form show just those materials used for that one job. I've come to a slump when trying to figure out how to keep the materials seperated. Should I create a database, or somehow use an object collection. Thanks for any ideas.

  2. #2
    Addicted Member
    Join Date
    Aug 2003
    Posts
    153
    I assume you want to keep a permanent record of the materials and expenses. In this case you will definately want to use a database to store this.

    Think of it this way. A database is a persistant store of information. A collection is a temporary store of data in memory.

    You may still want to use collections in order to manipulate the database information. Alot of the time I take information from a database, store it in a class, and store the class in a collection.

    I hope that rough explaination helps.

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2003
    Posts
    11
    Yeah, that helped out alot. I was thinking that's how it had to go. So I can populate a list box from a database? I'm kindof new to this if you can't tell. Thanks for the help anyway.

  4. #4
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Originally posted by Ebilum
    Yeah, that helped out alot. I was thinking that's how it had to go. So I can populate a list box from a database? I'm kindof new to this if you can't tell. Thanks for the help anyway.
    Yes , you can populate almost all controls with data stored in a database .

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