i created this code and i cant figure out whats wrong w/ it
Code:
Private Sub btnResults_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnResults.Click
Dim intDays As Integer
Dim intSalary As Integer
Dim count As Integer
Dim notNumeric As Boolean
Dim isNumeric As Boolean
'intDays from cbo
If notNumeric Then
MessageBox.Show("has to be numeric")
Return
End If
If isNumeric Then
'validate intDmerays
For count = 2 To intDays
intSalary += 2
Next
cboDays.Text = (intSalary / 100).ToString("c")
lblTotal.Text = String.Empty
End If
End Sub
End Class
Comment