Postada em 19/06/2008 12:37 hs
Ai Galera deu certo...
QtdSegundos = Int(Right(Hora1, 2)) + Int(Right(Hora2, 2)) + Int(Right(Hora3, 2)) + Int(Right(Hora4, 2)) Minutos = Int(QtdSegundos / 60): Segundos = QtdSegundos - (Minutos * 60)
QtdMinutos = Minutos + Int(Mid(Hora1, 4, 2)) + Int(Mid(Hora2, 4, 2)) + Int(Mid(Hora3, 4, 2)) + Int(Mid(Hora4, 4, 2)) Horas = Int(QtdMinutos / 60): Minutos = QtdMinutos - (Horas * 60)
QtdHoras = Int(Left(Hora1, 2)) + Int(Left(Hora2, 2)) + Int(Left(Hora3, 2)) + Int(Left(Hora4, 2)) Horas = Horas + QtdHoras
totalHoras = String(2 - Len(Horas), "0") & Horas & ":" & String(2 - Len(Minutos), "0") & Minutos & ":" & String(2 - Len(Segundos), "0") & Segundos
|