Visual Basic - COMO HAGO PARA QUE MI PROGRAMA CORRA POR UNOS DIAS

Life is soft - evento anual de software empresarial
 
Vista:

COMO HAGO PARA QUE MI PROGRAMA CORRA POR UNOS DIAS

Publicado por DANNY (32 intervenciones) el 23/03/2002 21:42:49
HOLA
PREGUNTE COMO PODIA TERMINAR MI PROGRAMA EN UN PAR DE DIAS PORQUE LO QUIERO DAR A ALGUIEN PARA QUE LO MIRE Y QUE LUEGO SE TERRMINE EN UNA SEMANA
UN BUEN AMIGO ME CONTESTO QUE UNA DE LAS OPCIONES ERA PONERLE UN TIMER A UNA VARIABLE PERO NO TENGO IDEA DE QUE ME QUIZO EXPLICAR Y ME DEJO MAS CONFUSO
ALGUIEN ME PODRIA DECIR COMO LE PUEDO PONER UN TIMER Y QUE SE TERMINE EN UNA SEMANA
SI ME DAN CODIGO MEJOR
DESDE YA MUCHAS GRACIAS
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:COMO HAGO PARA QUE MI PROGRAMA CORRA POR UNOS D

Publicado por fgralt (4 intervenciones) el 25/03/2002 13:53:10
con la funcion time() obtienes la fecha del sitema supongo que poniendo if time<(fecha en la que quieres que termine) then
funcionara pero siempre te pueden cambiar la fecha en la bios
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:COMO HAGO PARA QUE MI PROGRAMA CORRA POR UNOS D

Publicado por Eduardo Lopez (12 intervenciones) el 26/03/2002 22:43:19
hoy=now()
FechaComienzo=Hoy
FechaFin=now()+30dias(por ejemplo)
if fechacomienzo<= hoy and >=fechafin
end
endif
*****************************
con este simple codigo tu programa funcionara en esas fechas previstas siempre y cuando no te cambien la fecha en la Bios, pero es una manera bastante viable, suerte y un abrazo !
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

GRACIAS EDUARDO POR TU AYUDA

Publicado por DANNY (32 intervenciones) el 26/03/2002 22:59:49
GRACIAS POR TU AYUDA LO VOY A INTENTAR CON LOS DATOS QUE ME DISTES
GRACIAS POR TU TIEMPO Y TU AYUDA
DANNY
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar