Electronica

Solo disponible en BuenasTareas
  • Páginas : 5 (1186 palabras )
  • Descarga(s) : 0
  • Publicado : 5 de octubre de 2010
Leer documento completo
Vista previa del texto
If Text1.Text = "0" Then Text1.Text = ""
If a = True Then
Text1.Text = "1"
a = False
Else
Text1.Text = Text1.Text & "1"
End If
End Sub

Private Sub Command11_Click()
If a = True Then
Text1.Text = "0"
a = False
Else
Text1.Text = Text1.Text & "0"
End If
End Sub

Private Sub Command12_Click()
If a = True Then
Text1.Text = "00"
a = False
Else
Text1.Text = Text1.Text & "00"
EndIf
End Sub

Private Sub Command13_Click()
If tipo = "suma" Then
can2 = Text1.Text
Text1.Text = CDbl(can1) + CDbl(can2)
can1 = Text1.Text
a = True
tipo = "suma"
ElseIf tipo = "resta" Then
can2 = Text1.Text
Text1.Text = CDbl(can1) - CDbl(can2)
can1 = Text1.Text
a = True
tipo = "suma"
ElseIf tipo = "multi" Then
can2 = Text1.Text
Text1.Text = CDbl(can1) * CDbl(can2)
can1 =Text1.Text
a = True
tipo = "suma"
ElseIf tipo = "divi" Then
can2 = Text1.Text
Text1.Text = CDbl(can1) / CDbl(can2)
can1 = Text1.Text
a = True
tipo = "suma"
ElseIf tipo = "" Then
can1 = Text1.Text
a = True
tipo = "suma"
End If
End Sub

Private Sub Command14_Click()
If tipo = "suma" Then
can2 = Text1.Text
Text1.Text = CDbl(can1) + CDbl(can2)
can1 = Text1.Text
a = True
tipo = "resta"ElseIf tipo = "resta" Then
can2 = Text1.Text
Text1.Text = CDbl(can1) - CDbl(can2)
can1 = Text1.Text
a = True
tipo = "resta"
ElseIf tipo = "multi" Then
can2 = Text1.Text
Text1.Text = CDbl(can1) * CDbl(can2)
can1 = Text1.Text
a = True
tipo = "resta"
ElseIf tipo = "divi" Then
can2 = Text1.Text
Text1.Text = CDbl(can1) / CDbl(can2)
can1 = Text1.Text
a = True
tipo = "resta"
ElseIf tipo= "" Then
can1 = Text1.Text
a = True
tipo = "resta"
End If
End Sub

Private Sub Command15_Click()
If tipo = "suma" Then
can2 = Text1.Text
Text1.Text = CDbl(can1) + CDbl(can2)
can1 = Text1.Text
a = True
tipo = "multi"
ElseIf tipo = "resta" Then
can2 = Text1.Text
Text1.Text = CDbl(can1) - CDbl(can2)
can1 = Text1.Text
a = True
tipo = "multi"
ElseIf tipo = "multi" Then
can2 =Text1.Text
Text1.Text = CDbl(can1) * CDbl(can2)
can1 = Text1.Text
a = True
tipo = "multi"
ElseIf tipo = "divi" Then
can2 = Text1.Text
Text1.Text = CDbl(can1) / CDbl(can2)
can1 = Text1.Text
a = True
tipo = "multi"
ElseIf tipo = "" Then
can1 = Text1.Text
a = True
tipo = "multi"
End If
End Sub

Private Sub Command16_Click()
If tipo = "suma" Then
can2 = Text1.Text
Text1.Text =CDbl(can1) + CDbl(can2)
can1 = Text1.Text
a = True
tipo = "divi"
ElseIf tipo = "resta" Then
can2 = Text1.Text
Text1.Text = CDbl(can1) - CDbl(can2)
can1 = Text1.Text
a = True
tipo = "divi"
ElseIf tipo = "multi" Then
can2 = Text1.Text
Text1.Text = CDbl(can1) * CDbl(can2)
can1 = Text1.Text
a = True
tipo = "divi"
ElseIf tipo = "divi" Then
can2 = Text1.Text
Text1.Text = CDbl(can1) /CDbl(can2)
can1 = Text1.Text
a = True
tipo = "divi"
ElseIf tipo = "" Then
can1 = Text1.Text
a = True
tipo = "divi"
End If
End Sub

Private Sub Command17_Click()
If tipo = "suma" Then
can2 = Text1.Text
Text1.Text = CDbl(can1) + CDbl(can2)
can1 = Text1.Text
a = True
tipo = ""
ElseIf tipo = "resta" Then
can2 = Text1.Text
Text1.Text = CDbl(can1) - CDbl(can2)
can1 = Text1.Text
a = Truetipo = ""
ElseIf tipo = "multi" Then
can2 = Text1.Text
Text1.Text = CDbl(can1) * CDbl(can2)
can1 = Text1.Text
a = True
tipo = ""
ElseIf tipo = "divi" Then
can2 = Text1.Text
Text1.Text = CDbl(can1) / CDbl(can2)
can1 = Text1.Text
a = True
tipo = ""
ElseIf tipo = "" Then
can1 = Text1.Text
a = True
tipo = ""
End If
End Sub

Private Sub Command18_Click()
a = False
Text1.Text = ""can1 = "0"
can2 = "0"
Command1.Enabled = False
Command2.Enabled = False
Command3.Enabled = False
Command4.Enabled = False
Command5.Enabled = False
Command6.Enabled = False
Command7.Enabled = False
Command8.Enabled = False
Command9.Enabled = False
Command11.Enabled = False
Command12.Enabled = False
Command13.Enabled = False
Command14.Enabled = False
Command15.Enabled = False...
tracking img