Sub not behaving as expected

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • van obra

    Sub not behaving as expected

    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
    Last edited by MMcCarthy; Oct 24 '10, 05:47 AM. Reason: added code tags
  • Stewart Ross
    Recognized Expert Moderator Specialist
    • Feb 2008
    • 2545

    #2
    What is occurring? You don't tell us in what way the sub's behaviour is not as you expect it should be, and we can't guess what you want us to look at.

    I have retitled your post from 'Help Pls' as this does not give us a clue what you are asking. I have also moved your post from the Insights forum to the Answers one.

    Please advise in what way your sub is not doing what you expect it to do.

    -Stewart
    Last edited by Stewart Ross; Oct 24 '10, 07:19 PM.

    Comment

    Working...