You are on page 1of 7

Private Sub Command1_Click()

Text3.Text = Val(Text2.Text) - Val(Text1.Text)

End Sub

Private Sub Command2_Click()

Text1.Text = ""

Text2.Text = ""

Text3.Text = ""

Text1.SetFocus

End Sub

Private Sub Command3_Click()

End

End Sub
Private Sub Command1_Click()

If Val(Text1) >= 0 Then

Text2.Text = "Positivo"

Else

Text2.Text = "Negativo"

End If

End Sub

Private Sub Command2_Click()

Text1.Text = ""

Text2.Text = ""

Text1.SetFocus

End Sub

Private Sub Command3_Click()

End

End Sub
Private Sub Command1_Click()

If Val(Text1) >= 1000 Then

Text2.Text = Val(Text1.Text) * 0.85

Else

Text2.Text = Val(Text1.Text) * 0.9

End If

End Sub

Private Sub Command2_Click()

Text1.Text = ""

Text2.Text = ""

Text1.SetFocus

End Sub

Private Sub Command3_Click()

End

End Sub
Private Sub Command1_Click()

If Val(Text1.Text) > 2500 Then

Text2.Text = Val(Text1.Text) * 0.15

Else

Text2.Text = Val(Text1.Text) * 0.08

End If

Text3.Text = Val(Text1) - Val(Text2)

End Sub

Private Sub Command2_Click()

Text1.Text = ""

Text2.Text = ""

Text3.Text = ""

Text1.SetFocus

End Sub

Private Sub Command3_Click()

End

End Sub
Private Sub Command1_Click()

If Val(Text1.Text) > Val(Text2.Text)


Then

If Val(Text1.Text) > Val(Text3.Text)


Then

Text4.Text = Val(Text1.Text)

Else

Text4.Text = Val(Text3.Text)

End If

Else

If Val(Text2.Text) > Val(Text3.Text) Then

Text4.Text = Val(Text2.Text)

Else

Text4.Text = Val(Text3.Text)

End If

End If

End Sub

Private Sub Command2_Click()

Text1 = ""

Text2 = ""

Text3 = ""

Text4 = ""

Text1.Text

End Sub

Private Sub Command3_Click()

End

End Sub
Private Sub Command1_Click()

If Val(Text1.Text) > 300 Then

Text2.Text = Val(Text1.Text) * 75

Else

If Val(Text1.Text) > 200 Then

Text2.Text = Val(Text1.Text) * 85

Else

Text2.Text = Val(Text1.Text) * 95

End If

End If

End Sub

Private Sub Command2_Click()

Text1.Text = ""

Text2.Text = ""

Text1.SetFocus

End Sub

Private Sub Command3_Click()

End

End Sub
Private Sub Command1_Click()

Dim P As Double

If Combo1.Text = "A" Then

If Val(Combo2.Text) = 1 Then

P = Val(Text1.Text) + 0.2

Else

P = Val(Text1.Text) + 0.3

End If

Else

If Val(Combo2.Text) = 1 Then

P = Val(Text1.Text) - 0.3

Else

P = Val(Text1.Text) - 0.5

End If

End If

Text3.Text = P * Val(Text2.Text)

End Sub

Private Sub Command2_Click()

Combo1.Text = ""

Combo2.Text = ""

Text1.Text = ""

Text2.Text = ""

Text3.Text = ""

Text1.SetFocus

End Sub

Private Sub Command3_Click()

End

End Sub

You might also like