Ver Mensaje Individual
  #3 (permalink)  
Antiguo 09/06/2010, 15:19
Avatar de -rommel_
-rommel_
 
Fecha de Ingreso: junio-2008
Ubicación: Lima
Mensajes: 360
Antigüedad: 15 años, 10 meses
Puntos: 1
Respuesta: Problema con bucle y timer

A ver improvise algo... a ver si tu lo modificas
Código vb:
Ver original
  1. Public Valor1 as Integer
  2. Public x as integer
  3.  
  4. Private Sub Command1_click()
  5.     Me.Timer1.Enabled = True
  6. End Sub
  7.  
  8. Private Sub Timer1_Timer()
  9.    Valor1 = Valor1 +10
  10.    If x = 1 Then
  11.         me.Text1.text = valor1
  12.    elseif x>1 then
  13.         me.Text1.text = me.Text1.text & vbCrlf & valor1
  14.     End If
  15.    
  16.     x = x + 1
  17.     if x  =  15  Then
  18.          me.Timer1.Enabled = False
  19.          me.Text1.text = me.Text1.text & vbCrlf & "Listo se termino la cuenta"
  20.     End If
  21. End Sub
a ver si te sirve