We were given a few combinations to use, this part works just fine
However, everything else should produce "Long Distance", which is the part I'm having a little trouble with.
Public Class Form1
Private Sub btnExit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExit.Click
Me.Close()
End Sub
Private Sub btnClear_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClear.Click
txtACode.Text = ""
txtPrefix.Text = ""
lblCallIs.Text = ""
End Sub
Private Sub btnCalc_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalc.Click
If txtACode.Text = 123 And txtPrefix.Text = 455 Or 456 Then lblCallIs.Text = "Local"
If txtACode.Text = 234 And txtPrefix.Text = 566 Or 567 Or 568 Then lblCallIs.Text = "Local"
If txtACode.Text = 234 And txtPrefix.Text = 112 Or 113 Or 114 Then lblCallIs.Text = "Intra-LATA"
Else lblCallist.text = "Long Distance"
End Sub
End Class
I just noticed I used the wrong label for the else part, that wasn't the problem but it's fixed now

New Topic/Question
Reply



MultiQuote






|