Professional Documents
Culture Documents
Private Sub divide_Click() 'Retaining First Value for the Later Operation
f = Val(Text1.Text)
Text1.Text = " "
exp = 4
End Sub
Private Sub multiply_Click() 'Retaining First Value for the Later Operation
f = Val(Text1.Text)
Text1.Text = " "
exp = 3
End Sub
Private Sub subtract_Click() 'Retaining First Value for the Later Operation
f = Val(Text1.Text)
Text1.Text = " "
exp = 2
End Sub
Private Sub sum_Click() 'Retaining First Value for the Later Operation
f = Val(Text1.Text)
Text1.Text = " "
exp = 1
End Sub
Form1 - 2
Private Sub result_Click() 'Main Working is here, First we are saving the second Value then e
valuvating
s = Val(Text1.Text)
If exp = 1 Then
r = f + s
ElseIf exp = 2 Then
r = f - s
ElseIf exp = 3 Then
r = f * s
ElseIf exp = 4 Then
r = f / s
End If