Se para y no sé porqué.Ayuda!!
Publicado por Miguel (243 intervenciones) el 27/03/2001 18:41:07
Hola.Una ayuda por favor!!!
Este código me va seleccionado texto de un RichTextBox por líneas y columnas,cada selección la enviará a una base de dato, pero se me llega a parar.
¿Alguien sabe porqué?
Dim Linea As Integer
Linea = 48
empezar:
'------FECHA----------
'Esperar un número de segundos
Dim t1g As Date, t2g As Date
t1g = Second(Now)
t2g = t1g + 1
Do
DoEvents
Loop While t2g > Second(Now)
Rich1.SelStart = Linea
Rich1.SelLength = 5
Rich1.SelColor = &HFF
Linea = Linea + 6
'-------HORA------------------
'Esperar un número de segundos
Dim t1 As Date, t2 As Date
t1 = Second(Now)
t2 = t1 + 1
Do
DoEvents
Loop While t2 > Second(Now)
Rich1.SelStart = Linea
Rich1.SelLength = 5
Rich1.SelColor = &HFF
Linea = Linea + 6
GoTo empezar
Este código me va seleccionado texto de un RichTextBox por líneas y columnas,cada selección la enviará a una base de dato, pero se me llega a parar.
¿Alguien sabe porqué?
Dim Linea As Integer
Linea = 48
empezar:
'------FECHA----------
'Esperar un número de segundos
Dim t1g As Date, t2g As Date
t1g = Second(Now)
t2g = t1g + 1
Do
DoEvents
Loop While t2g > Second(Now)
Rich1.SelStart = Linea
Rich1.SelLength = 5
Rich1.SelColor = &HFF
Linea = Linea + 6
'-------HORA------------------
'Esperar un número de segundos
Dim t1 As Date, t2 As Date
t1 = Second(Now)
t2 = t1 + 1
Do
DoEvents
Loop While t2 > Second(Now)
Rich1.SelStart = Linea
Rich1.SelLength = 5
Rich1.SelColor = &HFF
Linea = Linea + 6
GoTo empezar
Valora esta pregunta


0