Quote Originally Posted by user name
Why use a listbox if you are not going to list values and just keep overwriting the same item ?
There will not only be 1 item in the listbox. There will be numerous items eg.
for a pizza pos system:
Someone might order 5 cokes and 4 pizzas.
When i try and scroll up to 5 on the numeric counter for coke it will add:
Coke X 1
Coke X 2
Coke X 3
Coke X 4
Coke X 5

I want to only have Coke X 5 in the listbox.

I cannot clear the items in the box and then add the next item because if there are other items they will be removed as well.


If there is no item in the ListBox then add an item. If there is an item then change that existing item to the new value.
How do i check eg. if a Coke has already been ordered? Because i cannot check the first index as another item may be in that slot.
if a coke is in there then how do i edit the item.

Thanks