Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim quantity As Integer Dim quanarr(20) As Integer Dim item As String Dim price As Double Dim x As Integer = 0 Dim counter As Integer counter = QuantityList.Items.Count quantity = Val(QuantityBox.Text) item = ItemBox.Text price = Val(Pricebox.Text)
Here is my code, i have three textboxs that take in a price, item name and quantity. As the user inputs to the text boxes the three are put into their proper listboxes. I need to find a way to correlate the quantity with that certian price. otherwises the total will be wrong. any ideas or help?