stuck on some visual basic

Associate
Joined
7 Nov 2004
Posts
1,755
Location
Southampton/Oxford
have some problems working out how to do this, bit of pickle when it coems to programming, basically trying to work out the total amount of items sold right, so far me and a friend have worked out to have a loop running and flag the current calculation, till the user has finished, at the moment i have 4 txt boxes and this is the coding i have so far

MessageBox.Show("Please record the results in the Total Sales File", "Read me", MessageBoxButtons.OK)

Dim Price, Quantity, Total As Decimal
Dim Answer As Decimal

Price = Val(TxtPrice.Text)
Quantity = Val(TxtQuantity.Text)
Total = Val(TxtAnswer.Text)
Answer = Val(TxtAnswer.Text)

Total = Price * Quantity

TxtAnswer.Text = "" & Answer

any help would be appreciated :confused:
 
Back
Top Bottom