Start New Discussion within our Software Development Community

i USED THIS CODE TO ASSIGN THE BRAND DBS TO A VALUE OF $200000

Help with Code Tags


Private Sub xModelComboBox_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles xModelComboBox.SelectedIndexChanged

If xModelComboBox.Text = "DBS" Then

xTotalPriceLabel.Text = "$200,000"

AND THIS CODE TO CALCULATE THE FOLLOWING iNITIAL PRICE=
is the default price for the selected brand and model in 2006.

---hOW TO I ASSIGN A SPECIFIC YEARS TO THE SAME BRAND and join it to the year?????EX---dbs@1983, 84 ETC.

I USED THIS TO DECLARE THE CALCULATIONS
Code:

Help with Code Tags


Private Sub xCalcButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles xCalcButton.Click

Dim YearOfMade As Double
YearOfMade = Me.xSelectyearComboBox.SelectedItem
Dim InitialPrice As Double
InitialPrice = Val(xMakeComboBox.Text) + Val(xModelComboBox.SelectedItem) + Val(xSelectyearComboBox.SelectedItem)

xTotalPriceLabel.Text = InitialPrice

This question has already been answered. Start a new discussion instead.