Products-store data

Hi, I am working in this program of products sale,
The products info must be already declared in the program, so when the user enters a certain code of product, it will display it's cost, and description.

This is an assignment, and i have been told that i cannot use arrays to store the data:

the products info will be something like this:

Description---code---price
------------
Sweater-101---7040---14.99
Beans-----4312---5.00

so,
how can i store this data?
is it possible using controls, such as Listbox?

what can i do?

thanks...
[615 byte] By [derok] at [2007-11-20 11:13:22]
# 1 Re: Products-store data
derok,

It seems to me that you should ask your instructor to clarify the assignment.

Perhaps the instructor wants you to use one of the collection classes instead of an array. Or perhaps the instructor has some other storage structure in mind, like a datatable, etc.

I can't see how any advice from this group can be useful without a fuller explanation of the assignment.

Kerry Moorman
kmoorman at 2007-11-10 3:08:25 >
# 2 Re: Products-store data
...
derok at 2007-11-10 3:09:25 >
# 3 Re: Products-store data
what kind of Collection class can I use?
derok at 2007-11-10 3:10:24 >
# 4 Re: Products-store data
Ask the instructor why you shouldn't use an array, and to suggest something else. If we show something HE hasn't heard of, you'll have trouble explaining it.
dglienna at 2007-11-10 3:11:29 >
# 5 Re: Products-store data
If we show something HE hasn't heard of, you'll have trouble explaining it.
:lol: LOL! :lol: :thumb:
HanneSThEGreaT at 2007-11-10 3:12:28 >