Lo que hicimos en esta clase fue:
Private Sub alcuadrado_Click()visor.Caption = visor.Caption * visor.Caption
End Sub
Private Sub Command1_Click()visor.Caption = Sqr((Val(visor.Caption)))
End Sub
Private Sub igual_Click()punto.Enabled = True
If signos.Caption = "+" Thenvisor.Caption = Val(visor.Caption) + Val(auxcanal.Caption)signos.Caption = ""auxcanal.Caption = ""ElseIf signos.Caption = "-" Thenvisor.Caption = Val(auxcanal.Caption) - Val(visor.Caption)signos.Caption = ""auxcanal.Caption = ""ElseIf signos.Caption = "*" Thenvisor.Caption = Val(visor.Caption) * Val(auxcanal.Caption)signos.Caption = ""auxcanal.Caption = ""ElseIf signos.Caption = "/" ThenIf visor.Caption = "0" Thenvisor.Caption = "ERROR"signos.Caption = ""auxcanal.Caption = ""Elsevisor.Caption = Val(auxcanal.Caption) / Val(visor.Caption)signos.Caption = ""auxcanal.Caption = ""End IfEnd IfEnd IfEnd IfEnd IfIf signos.Caption = "%" Thenvisor.Caption = Val(visor.Caption) / 100 * Val(auxcanal)End If
End Sub
Private Sub potencias_Click()visor.Caption = visor.Caption * visor.Caption
End Sub
Private Sub raizcuadrada_Click()
If visor.Caption < 0 Thenvisor.Caption = "ERROR"Elsevisor.Caption = Sqr((Val(visor.Caption)))End If
End Sub
miércoles, 26 de septiembre de 2007
jueves, 30 de agosto de 2007
Aviso para vos Guille
Queria avisrate q lo de las vacaciones ya lo tengo prro no lo puedo postiar ya q se me sirra la pagina cuando copio el enbed de slideshare en HTML. Voy a tratar desde otra compu.
Avance del 23 de agosto,poe Ezequiel
En esta clase lo que hicimos en le trabajo fue:
-Programar de vuelta el enter ya que habiamos hecho algo mal
-Programar el anterior
-Crear el canalanterior
-Programar de vuelta el enter ya que habiamos hecho algo mal
-Programar el anterior
-Crear el canalanterior
Apunte de la clase del 23 de agosto
Lo que hicimos la clase del 23 fue programar el anterior y el enter .este ult. de vuelta ya que habiamos hecho algo mal.
Private Sub anterior_Click()
auxcanal.Caption = canalant.Caption
canalant.Caption = numerodecanal.Caption
numerodecanal.Caption = auxcanal.Caption
auxcanal.Caption = ""
Private Sub enter_Click()
If tvcatv.Caption = "tv" Then
If auxcanal.Caption < 13 Then
canalant.Caption = numerodecanal.Caption
numerodecanal.Caption = auxcanal.Caption
auxcanal.Caption = ""
Else
auxcanal.Caption = ""
End If
Else
If auxcanal.Caption < 120 Then
canalant.Caption = numerodecanal.Caption
numerodecanal.Caption = auxcanal.Caption
auxcanal.Caption = ""
Else
auxcanal.Caption = ""
End If
End If
End Sub
Private Sub anterior_Click()
auxcanal.Caption = canalant.Caption
canalant.Caption = numerodecanal.Caption
numerodecanal.Caption = auxcanal.Caption
auxcanal.Caption = ""
Private Sub enter_Click()
If tvcatv.Caption = "tv" Then
If auxcanal.Caption < 13 Then
canalant.Caption = numerodecanal.Caption
numerodecanal.Caption = auxcanal.Caption
auxcanal.Caption = ""
Else
auxcanal.Caption = ""
End If
Else
If auxcanal.Caption < 120 Then
canalant.Caption = numerodecanal.Caption
numerodecanal.Caption = auxcanal.Caption
auxcanal.Caption = ""
Else
auxcanal.Caption = ""
End If
End If
End Sub
Avance de la clase del 16/8 con mi compañero Ary
Esta clase no hemos podido avanzar debido a que no concurrimos al laboratorio . Por ende, no pudimos crear el boton anterior ni programar el canal ant , canal mas y el enter( las cosas que vimos en esta clase).Lo haremos el jueves que viene.
Avance de la clase del 19/7 por Ezequiel y Ary
En la clase del 19 de julio programamos:
-canal mas y canal menos para catv para que lleguen a 120 y luego vuelvan a 1
-onoff para que cuando la tele este apagada se desactiven todos los botones de numeros , canal mas , canal menos y enter por medio de enabled.
-canal mas y canal menos para catv para que lleguen a 120 y luego vuelvan a 1
-onoff para que cuando la tele este apagada se desactiven todos los botones de numeros , canal mas , canal menos y enter por medio de enabled.
martes, 31 de julio de 2007
Apunte de la clase 19/7
Te pongo el form. nada mas porque me dijiste que con eso alcanzaba.
El formulario de lo que hize en la clase del 19 de julio fue:
Private Sub canalmas_Click()
If tvcatv.Caption = "tv" Then
If Val(numerodecanal.Caption) > 12 Then
numerodecanal.Caption = 1
Else
numerodecanal.Caption = numerodecanal.Caption + 1
End If
Else
If Val(numerodecanal.Caption) > 120 Then
numerodecanal.Caption = 1
Else
numerodecanal.Caption = numerodecanal.Caption + 1
End If
End If
End Sub
Private Sub canalmenos_Click()
If tvcatv.Caption = "tv" Then
If Val(numerodecanal.Caption) < 1 Then
numerodecanal.Caption = 13
Else
numerodecanal.Caption = numerodecanal.Caption - 1
End If
Else
If Val(numerodecanal.Caption) < 1 Then
numerodecanal.Caption = 120
Else
numerodecanal.Caption = numerodecanal.Caption - 1
End If
End If
End Sub
Private Sub onoff_Click()
If OFFON.BackColor = vbRed Then
OFFON.BackColor = vbbalck
canalmas.Enabled = False
canalmenos.Enabled = False
enter.Enabled = False
uno.Enabled = False
dos.Enabled = False
tres.Enabled = Falsecuatro.Enabled = Falsecinco.Enabled = Falseseis.Enabled = Falsesiete.Enabled = False
ocho.Enabled = False
nueve.Enabled = False
cero.Enabled = False
Else
OFFON.BackColor = vbRed
canalmas.Enabled = True
canalmenos.Enabled = True
enter.Enabled = True
uno.Enabled = True
dos.Enabled = True
tres.Enabled = True
cuatro.Enabled = True
cinco.Enabled = True
seis.Enabled = True
siete.Enabled = True
ocho.Enabled = True
nueve.Enabled = True
cero.Enabled = True
End If
If OFFON.Caption = "on" Then
OFFON.Caption = "off"
Else
OFFON.Caption = "on"
End If
End Sub
Private Sub catvtv_Click()
If tvcatv.Caption = "tv" Then
tvcatv.Caption = "catv"
Else
tvcatv.Caption = "tv"
End If
End Sub
El formulario de lo que hize en la clase del 19 de julio fue:
Private Sub canalmas_Click()
If tvcatv.Caption = "tv" Then
If Val(numerodecanal.Caption) > 12 Then
numerodecanal.Caption = 1
Else
numerodecanal.Caption = numerodecanal.Caption + 1
End If
Else
If Val(numerodecanal.Caption) > 120 Then
numerodecanal.Caption = 1
Else
numerodecanal.Caption = numerodecanal.Caption + 1
End If
End If
End Sub
Private Sub canalmenos_Click()
If tvcatv.Caption = "tv" Then
If Val(numerodecanal.Caption) < 1 Then
numerodecanal.Caption = 13
Else
numerodecanal.Caption = numerodecanal.Caption - 1
End If
Else
If Val(numerodecanal.Caption) < 1 Then
numerodecanal.Caption = 120
Else
numerodecanal.Caption = numerodecanal.Caption - 1
End If
End If
End Sub
Private Sub onoff_Click()
If OFFON.BackColor = vbRed Then
OFFON.BackColor = vbbalck
canalmas.Enabled = False
canalmenos.Enabled = False
enter.Enabled = False
uno.Enabled = False
dos.Enabled = False
tres.Enabled = Falsecuatro.Enabled = Falsecinco.Enabled = Falseseis.Enabled = Falsesiete.Enabled = False
ocho.Enabled = False
nueve.Enabled = False
cero.Enabled = False
Else
OFFON.BackColor = vbRed
canalmas.Enabled = True
canalmenos.Enabled = True
enter.Enabled = True
uno.Enabled = True
dos.Enabled = True
tres.Enabled = True
cuatro.Enabled = True
cinco.Enabled = True
seis.Enabled = True
siete.Enabled = True
ocho.Enabled = True
nueve.Enabled = True
cero.Enabled = True
End If
If OFFON.Caption = "on" Then
OFFON.Caption = "off"
Else
OFFON.Caption = "on"
End If
End Sub
Private Sub catvtv_Click()
If tvcatv.Caption = "tv" Then
tvcatv.Caption = "catv"
Else
tvcatv.Caption = "tv"
End If
End Sub
Suscribirse a:
Entradas (Atom)