Dim decwage As Decimal
Dim decraise As Decimal
Dim decWagePerYear As Decimal
For intYear As Integer = 1 To 10
If Decimal.TryParse(txtHourlyWage.Text, decwage) AndAlso Decimal.TryParse(txtRaise.Text, decraise) Then
decWagePerYear += decwage * 2080
decwage *= (decraise / 100)
LstYearPay.Items.Add(" Year " & intYear & " Annual Salary " & decWagePerYear)
End If
Next
I'm trying to get this code to add the difference in pay for the next 10 years. Unfortunately it is taking the percent and multiplying that by the pay for the year. Can anyone help me with what I'm doing wrong.


Reply With Quote

