locked
Code help. RRS feed

  • Question

  • Private Sub btnConfirm_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnConfirm.Click

    Dim Height As Single = txtHeirange.Text

    If Height > 400 <= 600 Then

    MsgBox("require riser is 3")

    ElseIf Height > 600 <= 800 Then

    MsgBox("require riser is 4")

    End If

    End Sub

    Hi Friends

    Can check for me above code... When I keyin 610 the MsgBox("require riser is 4") should appear but...it call the first condition... how to fix


    Have a Nice Day

    Regards

    BFY

    Thursday, May 12, 2011 6:20 AM

Answers

  • Done

    Have a Nice Day

    Regards

    BFY

    • Marked as answer by Han_BFY Thursday, May 12, 2011 6:38 AM
    Thursday, May 12, 2011 6:38 AM
  • Private Sub btnConfirm_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnConfirm.Click

    Dim Height As Single = txtHeirange.Text

    If Height > 400 And Height <= 600 Then

    MsgBox("require riser is 3")

    ElseIf Height > 600 And Height <= 800 Then

    MsgBox("require riser is 4")

    End If

    End Sub


    Have a Nice Day

    Regards

    BFY

    • Marked as answer by Han_BFY Thursday, May 12, 2011 6:40 AM
    Thursday, May 12, 2011 6:39 AM

All replies

  • Done

    Have a Nice Day

    Regards

    BFY

    • Marked as answer by Han_BFY Thursday, May 12, 2011 6:38 AM
    Thursday, May 12, 2011 6:38 AM
  • Private Sub btnConfirm_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnConfirm.Click

    Dim Height As Single = txtHeirange.Text

    If Height > 400 And Height <= 600 Then

    MsgBox("require riser is 3")

    ElseIf Height > 600 And Height <= 800 Then

    MsgBox("require riser is 4")

    End If

    End Sub


    Have a Nice Day

    Regards

    BFY

    • Marked as answer by Han_BFY Thursday, May 12, 2011 6:40 AM
    Thursday, May 12, 2011 6:39 AM