lbloperacion.Caption = "/"
End Sub
Private Sub cmdmultiplicacion_Click()
lbloperacion.Caption = "*"
End Sub
Private Sub cmdresta_Click()
lbloperacion.Caption = "-"
End Sub
Private Sub cmdresultado_Click()
If lbloperacion.Caption = "+" Then
lblresultado.Caption = Val(txtval1.Text) + Val(txtval2.Text)
Else
If lbloperacion.Caption = "-" Then
lblresultado.Caption = Val(txtval1.Text) - Val(txtval2.Text)
Else
If lbloperacion.Caption = "*" Then
lblresultado.Caption = Val(txtval1.Text) * Val(txtval2.Text)
Else
If lbloperacion.Caption = "*" Then
lblresultado.Caption = Val(txtval1.Text) * Val(txtval2.Text)
Else
End If
End If
End If
End If
End Sub
Private Sub cmdsuma_Click()
lbloperacion.Caption = "+"