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
# 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.