contador
Publicado por Sebastian (244 intervenciones) el 31/03/2011 23:43:47
Hola programadores tengo este codigo todo funciona bien cuando ingreso los primeros registros el problema cuando vuelvo a ingresar los datos para obterner los resultados, muestra este mensaje "Se ha encontrado el final del archivo", como puedo hacer para que no muestre este mensaje y me deje seguir registrando datos. Gracias.
IF empty(thisform.text4.value)
WAIT windows "Ingrese la fecha correspondiente"
thisform.text4.setfocus()
ELSE
SELEC Calendario
*
REPLACE Fec_Ini With thisform.text4.value
REPLACE Fec_Fin With Fec_Ini + thisform.text1.value
*
Contador = 1
DO While Contador < 54
W_Fec_Ini = Fec_Fin + 1
W_Fec_Fin = Fec_Fin + 7
Skip
REPLACE Fec_Ini With W_Fec_Ini
REPLACE Fec_Fin With W_Fec_Fin
Contador = Contador + 1
IF Contador >= 53
EXIT
ENDIF
ENDDO
endif
IF empty(thisform.text4.value)
WAIT windows "Ingrese la fecha correspondiente"
thisform.text4.setfocus()
ELSE
SELEC Calendario
*
REPLACE Fec_Ini With thisform.text4.value
REPLACE Fec_Fin With Fec_Ini + thisform.text1.value
*
Contador = 1
DO While Contador < 54
W_Fec_Ini = Fec_Fin + 1
W_Fec_Fin = Fec_Fin + 7
Skip
REPLACE Fec_Ini With W_Fec_Ini
REPLACE Fec_Fin With W_Fec_Fin
Contador = Contador + 1
IF Contador >= 53
EXIT
ENDIF
ENDDO
endif
Valora esta pregunta


0