Problem is i keep getting blank answer.

Private Sub cmdFindLargest_Click()
'delcare variable
Dim intNum1 As Integer
Dim intNum2 As Integer
Dim intNum3 As Integer
'convert input value to numeric value
intNum1 = Val(txtNum1.Text)
intNum2 = Val(txtNum2.Text)
intNum3 = Val(txtNum3.Text)
'making decision
If intNum1 > intNum2 Then
ElseIf intNum1 > intNum3 Then
lblResult.Caption = "" & txtNum1.Text
End If
If intNum2 > intNum1 Then
ElseIf intNum2 > intNum3 Then
lblResult.Caption = "" & txtNum2.Text
End If
If intNum3 > intNum1 Then
ElseIf intNum3 > intNum2 Then
lblResult.Caption = "" & txtNum3.Text
End If
End Sub
hope any VB master here can enlight me
Feb 7 2006, 10:31 AM, updated 20y ago
Quote
0.0127sec
0.53
5 queries
GZIP Disabled