← Foro de Visual FoxPro

CONVERTIR NUMEROS A HORAS Y MINUTOS O SUMAS Y RESTAS DE MINUTOS

Hilo en el foro de Visual FoxPro · 01 de Abril del 2006 · 1 respuestas
omarcitol01 de Abril del 2006
Pregunta
HOLA AMIGOS QUISIERA Q ME AYUDEN, QUISIERA LA AYUDA DE COMO CONVERTIR NUMEROS A MINUTOS, OSEA TENGO 3 CUADROS DE TEXTO EN EL PRIMERO PONER LA HORA Y MINUTO DE INICIO EN EL SEGUNDO PONER LA HORA Y MINUTO DE TERMINO Y EN LE TERCERO QUISIERA EL RESULTADO UNA RESTA PERO EN MINUTOS EJEMPLO 10:20 - 1150 = 90 MIN, GRACIAS.

Respuestas 1

maRcOSxD01 de Abril del 2006
tt=(((hf*60)+mf)-((hi*60)+mi))
ht=int(tt/60)
mt=tt-(ht*60)
--------------------------------------------------------------------------
tt=tiempo total
hf=horafinal
mf=minutosfinales
hi=horainicial
mi=minutosiniciales
ht=horatotal
mt=minutostotales

no es dificil de entender
¿Buscas más hilos como este? Mira el foro de Visual FoxPro o usa el buscador.