VB program example using condition statement and logic gates

Simple program to find largest of 3 number using gates and if statements

Sample :



I can't show you complete code Directly so download full code from below .
Download the output  for the form (design).


Private Sub Command1_Click()
    If Text1.Text > Text2.Text And Text1.Text > Text3.Text Then
        largetext.Text = Text1.Text
    Else
        If Text2.Text > Text1.Text And Text2.Text > Text3.Text Then
            largetext.Text = Text2.Text
        Else
            largetext.Text = Text3.Text
        End If
    End If
End Sub



Full Code :
Output(largest_of_3.exe)

Full code(largest_of_3.doc)

Full project(largest_of_3.zip)

*Note Full project require Visual Basic 6.0