Professional Documents
Culture Documents
Click
If Val(TextBox1.Text) > Val(TextBox2.Text) And Val(TextBox2.Text) >
Val(TextBox3.Text) Then
Label5.Text = "Mayor"
Label6.Text = "Medio"
Label7.Text = "Menor"
End If
If Val(TextBox2.Text) > Val(TextBox3.Text) And Val(TextBox3.Text) >
Val(TextBox1.Text) Then
Label5.Text = "Menor"
Label6.Text = "Mayor"
Label7.Text = "Medio"
End If
If Val(TextBox3.Text) > Val(TextBox1.Text) And Val(TextBox1.Text) >
Val(TextBox2.Text) Then
Label5.Text = "Medio"
Label6.Text = "Menor"
Label7.Text = "Mayor"
End If
If Val(TextBox2.Text) > Val(TextBox1.Text) And Val(TextBox1.Text) >
Val(TextBox3.Text) Then
Label5.Text = "Medio"
Label6.Text = "Mayor"
Label7.Text = "Menor"
End If
If Val(TextBox1.Text) > Val(TextBox3.Text) And Val(TextBox3.Text) >
Val(TextBox2.Text) Then
Label5.Text = "Mayor"
Label6.Text = "Menor"
Label7.Text = "Medio"
End If
If Val(TextBox1.Text) < Val(TextBox3.Text) And Val(TextBox3.Text) >
Val(TextBox2.Text) Then
Label5.Text = "Menor"
Label6.Text = "Medio"
Label7.Text = "Mayor"
End If
If Val(TextBox1.Text) > Val(TextBox2.Text) And Val(TextBox2.Text) =
Val(TextBox3.Text) Then
Label5.Text = "Mayor"
Label6.Text = "Igual"
Label7.Text = "Igual"
End If
If Val(TextBox1.Text) = Val(TextBox2.Text) And Val(TextBox2.Text) =
Val(TextBox3.Text) Then
Label5.Text = "Igual"
Label6.Text = "Igual"
Label7.Text = "Igual"
End If
If Val(TextBox2.Text) > Val(TextBox3.Text) And Val(TextBox3.Text) =
Val(TextBox1.Text) Then
Label5.Text = "Igual"
Label6.Text = "Mayor"
Label7.Text = "Igual"
End If
If Val(TextBox3.Text) > Val(TextBox1.Text) And Val(TextBox1.Text) =
Val(TextBox2.Text) Then
Label5.Text = "Igual"
Label6.Text = "Igual"
Label7.Text = "Mayor"
Button2.Focus()
End If
If Val(TextBox1.Text) < Val(TextBox2.Text) And Val(TextBox2.Text) =
Val(TextBox3.Text) Then
Label5.Text = "Menor"
Label6.Text = "Igual"
Label7.Text = "Igual"
End If
If Val(TextBox2.Text) < Val(TextBox3.Text) And Val(TextBox3.Text) =
Val(TextBox1.Text) Then
Label5.Text = "Igual"
Label6.Text = "Menor"
Label7.Text = "Igual"
End If
If Val(TextBox3.Text) < Val(TextBox2.Text) And Val(TextBox2.Text) =
Val(TextBox1.Text) Then
Label5.Text = "Igual"
Label6.Text = "Igual"
Label7.Text = "Menor"
End If
Button2.Focus()
End Sub