Results 1 to 2 of 2

Thread: What type to use for a list

  1. #1

    Thread Starter
    Frenzied Member trisuglow's Avatar
    Join Date
    Jan 2002
    Location
    Horsham, Sussex, UK
    Posts
    1,536

    What type to use for a list

    I'm writing an application to assist in the design of an electronic system. Part of the application is a "Shopping List" that details all the items required to be purchased.

    I need to add and delete items from the list and also to increase/decrease the quantity of items that have previously been added. Items with a quantity of zero should not be shown on the list.

    I'm using a ListView to display the list, but I'm looking for advice for which structure to use to store the data (e.g. Array, Collection, List, Dictionary, etc)

    Anybody got any experience they'd care to share with me?
    This world is not my home. I'm just passing through.

  2. #2
    Registered User
    Join Date
    Nov 2002
    Location
    Växjö, Sweden
    Posts
    314
    There are alot of solutions and recommendations to this I guess. An Idea might be to create you own class for it, that gives you most possobilities. That is what I would do.

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