problema con timer
Publicado por ECOLOCO (3 intervenciones) el 18/11/2002 20:52:44
Estoy haciendo una aplicacion de control de tiempo, y quisiera saber que esta mal ya que aparentemente funciona,
Dim acumula As Long
Dim acumulado As Currency
Private Sub Command1_Click()
Timer1.Enabled = True
End Sub
Private Sub Command2_Click()
Timer1.Enabled = False
MsgBox \"llame al dueño o al encargado para realizar el pago\"
End Sub
Private Sub Form_Load()
costo = 10
End Sub
Private Sub Timer1_Timer()
acumula = acumula + 1
Text4 = Val(Text4) + 1
If Val(Text4) > 59 Then
Text4 = 0
Text3 = Val(Text3) + 1
If Val(Text3) > 59 Then
Text3 = 0
Text2 = Val(Text2) + 1
If Val(Text2) = 12 Then
MsgBox \"hallegado al limite de tiempo, por favor llame al encargado o al dueño para para pagar\"
Timer1.Enabled = False
End If
End If
End If
\'Text5 = (acumula / costo) + 1
Text5 = (Val(Text1) / acumula) / 100 \' se supone que deve dar el valor del
\'importe en moneda
End Sub
Dim acumula As Long
Dim acumulado As Currency
Private Sub Command1_Click()
Timer1.Enabled = True
End Sub
Private Sub Command2_Click()
Timer1.Enabled = False
MsgBox \"llame al dueño o al encargado para realizar el pago\"
End Sub
Private Sub Form_Load()
costo = 10
End Sub
Private Sub Timer1_Timer()
acumula = acumula + 1
Text4 = Val(Text4) + 1
If Val(Text4) > 59 Then
Text4 = 0
Text3 = Val(Text3) + 1
If Val(Text3) > 59 Then
Text3 = 0
Text2 = Val(Text2) + 1
If Val(Text2) = 12 Then
MsgBox \"hallegado al limite de tiempo, por favor llame al encargado o al dueño para para pagar\"
Timer1.Enabled = False
End If
End If
End If
\'Text5 = (acumula / costo) + 1
Text5 = (Val(Text1) / acumula) / 100 \' se supone que deve dar el valor del
\'importe en moneda
End Sub
Valora esta pregunta


0