Jump to content


Photo

Function - Erro


  • Faça o login para participar
Nenhuma resposta neste tópico

#1 AlexCT

AlexCT

    12 Horas

  • Usuários
  • 193 posts
  • Sexo:Não informado

Posted 06/12/2004, 21:44

Nao consigo acessar a pagina, pq deve etr algum erro em algum function, podem dar uma olhada?


Function MinutoSegundo(Minuto)
transforma 05:10 minuto:segundo em segundo

Function SegundoMinuto(Segundo)
transforma segundo em tempo 05:10 minuto:segundo

Function MediaTempo(SomaTempo, x)
acha a média de um tempo


<%
Function MinutoSegundo(Minuto)
MinutoSegundo = (Minute(Minuto)*60) + Second(Minuto)
End Function


Function SegundoMinuto(Segundo)
Minuto = (Segundo \ 60)
If Len(Minuto) = 1 Then Minuto = "0" & Minuto
Segundo = (Segundo Mod 60)
If Len(Segundo) = 1 Then Segundo = "0" & Segundo
SegundoMinuto = Minuto & ":" & Segundo
End Function


Function MediaTempo(SomaTempo, x)
total = (Minute(Minuto)*60) + Second(Minuto)
SomaTempo = total / x
Minuto = Minute(SomaTempo)*60)/x
Segundo = Second(SomaTempo)/x
If Len(Minuto) = 1 Then Minuto = "0" & Minuto
Segundo = (Segundo Mod 60)
If Len(Segundo) = 1 Then Segundo = "0" & Segundo

MediaTempo = Minuto & ":" & Segundo
End Function

%>




1 user(s) are reading this topic

0 membro(s), 1 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq