>  Hopefully not any different than the way you would do it in an array.  In
>your example below, I would have a structure for Product 1, a structure for
>Product 2, and so on.  I would also have an ItemInYourBag structure, with
>the key being the product ID and the value being the quantity.  If the
>product had more attributes, such as color or size, they would just be more
>members of the ItemInYourBag structure.
>
>The only list I would maintain would be the list of items in your bag, which
>is the same as the StructKeyList(ItemInYourBag).
>
>I don't think this helped explain why I prefer lists rather than arrays, as
>my solution would be structures of structures.

yeah, i think that you can't do something that complex with just lists. you
would have to work with arrays and/or structures. the only "problem" i can
see with the structure of structures you have above has to do with what
would you be using as your key for the outer structure? you would have to
dynamically generate it, which seems like it would be more effort than just
using the index that is inherent in an array. -emily
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to