Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

List Box / Array Problem

Status
Not open for further replies.

opSpy

Programmer
May 18, 2002
18
DE
set the scene: i am trying to make a calculator for a postage cost.
Combo's to select product and quantity, cmd button to add to list, combo's index relate to array.

The name of the product gets added to the list, and the price to a text total.

I want to remove individual items, which i can do, BUT i cannot get the total cost to remove that items cost from the total.

I had thought using a dynamic array, and adding the quantity to that as well as the list, but it jsut got too complicated, i am somewhat of a newbee!

ANY ADVICE would be greatly appreciated.
 
Can you post your code? Anything is possible, the problem is I only have one lifetime.
[cheers]
 
This is my code to display the item in the list box, and total the price:
lstProducts.AddItem cboProduct.List(RowPostChgArr) & " To: " & cboDestination.List(ColPostChgArr) & " @ GBP £" & PostChgArr(RowPostChgArr, ColPostChgArr)

txtCost.Text = Format(Val(txtCost.Text) + PostChgArr(RowPostChgArr, ColPostChgArr), "0.00")

but how do i remove the cost of one of these items, after different item s have been entered??
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top