border

Miembros:
Mensajes:
Temas:
Online:

Ultimo Miembro:

 
 


Retroceder   VB-MUNDO - Programacion Visual > Programacion - Lenguajes > Visual Basic 6.00
Registrarse FAQ Miembros Calendario Buscar Temas de Hoy Marcar Foros Como Leídos

Respuesta
 
LinkBack Herramientas Desplegado
  #1 (permalink)  
Antiguo 23-11-2005, 05:09:50
Gran Participación en el Foro
 
Registrado: may 2005
Posts: 195
ikki_26 Valoración +2
Contactar con ikki_26 a través de MSN Contactar con ikki_26 a través de Yahoo
Predeterminado Alguien puede ayudarme con este problemas de horas

Tengo el siguiente problema:

Quisiera suma todas las columnas de la grilla, pero los valores son horas.... De la sgte pantalla q coloco
Imágenes Adjuntas
Tipo de Archivo: jpg lista_264.jpg (108,8 KB, 53 visitas)
__________________
Ikki
Responder Con Cita
  #2 (permalink)  
Antiguo 23-11-2005, 06:15:09
Avatar de albmartin
Gran Participación en el Foro
 
Registrado: mar 2004
Posts: 473
albmartin Valoración +2
Predeterminado

Mira a ver si te vale algo como esto:
Código:
while not rcs.eof
         lnghoras = lngHoras + datepart("h", rcs!logged)
         lngminutos = lngminutos + datepart("n", rcs!logged)
         lngsegundos = lngsegundos + datepart("s", rcs!logged)

         rcs.movenext
wend

lngminutos = lngminutos + lngsegundos \ 60
lngHoras = lngHoras + lngminutos \ 60
lngminutos = lngminutos mod 60
lngsegundos = lngsegundo mod 60
Creo que con esto valdra, espero que te sirva, un saludo.
Responder Con Cita
  #3 (permalink)  
Antiguo 24-11-2005, 00:53:13
Gran Participación en el Foro
 
Registrado: may 2005
Posts: 195
ikki_26 Valoración +2
Contactar con ikki_26 a través de MSN Contactar con ikki_26 a través de Yahoo
Predeterminado No funciona

Este es un flexgrid y no son valores de una tabla son valores sueltos... como hago eso? no son valores de tablas...
__________________
Ikki
Responder Con Cita
  #4 (permalink)  
Antiguo 24-11-2005, 02:23:37
Gran Participación en el Foro
 
Registrado: dic 2004
Posts: 127
Memin Valoración +2
Contactar con Memin a través de MSN
Predeterminado

Que tal ikki_26 , mira se me ocurre ago así....

Espero que te sirva..... Hasta Luego......
Archivos Adjuntos
Tipo de Archivo: rar proyectotemporal.rar (2,3 KB, 7 visitas)
__________________
Guillermo Rentería
Responder Con Cita
  #5 (permalink)  
Antiguo 24-11-2005, 03:02:25
Gran Participación en el Foro
 
Registrado: may 2005
Posts: 195
ikki_26 Valoración +2
Contactar con ikki_26 a través de MSN Contactar con ikki_26 a través de Yahoo
Predeterminado YO coloco este codigo... Pero no me resulta

No se si estara bien?

************************************************** *********
For j = 1 To frmDetalle.gCiclos.Rows - 1

frmDetalle.Text1 = Val(frmDetalle.Text1) + DatePart("n", frmDetalle.gCiclos.TextMatrix(j, 1))

frmDetalle.totales.TextMatrix(1, 0) = Format(Val(frmDetalle.Text1) / 60, "##") & ":" & Format(Val(frmDetalle.Text1) Mod 60, "###")

frmDetalle.Text2 = Val(frmDetalle.Text2) + DatePart("n", frmDetalle.gCiclos.TextMatrix(j, 2))

frmDetalle.totales.TextMatrix(1, 1) = Format(Val(frmDetalle.Text2) / 60, "##") & ":" & Format(Val(frmDetalle.Text2) Mod 60, "###")


frmDetalle.Text3 = Val(frmDetalle.Text3) + DatePart("s", frmDetalle.gCiclos.TextMatrix(j, 3))

frmDetalle.totales.TextMatrix(1, 2) = Format(Val(frmDetalle.Text3) / 60, "##") & ":" & Format(Val(frmDetalle.Text3) Mod 60, "###")


frmDetalle.Text4 = Val(frmDetalle.Text4) + Val(frmDetalle.gCiclos.TextMatrix(j, 4))
frmDetalle.totales.TextMatrix(1, 3) = frmDetalle.Text4

frmDetalle.Text5 = Val(frmDetalle.Text5) + Val(frmDetalle.gCiclos.TextMatrix(j, 5))
frmDetalle.totales.TextMatrix(1, 4) = frmDetalle.Text5

frmDetalle.Text6 = Val(frmDetalle.Text6) + DatePart("s", frmDetalle.gCiclos.TextMatrix(j, 6))

frmDetalle.totales.TextMatrix(1, 5) = Format(Val(frmDetalle.Text6) / 60, "##") & ":" & Format(Val(frmDetalle.Text6) Mod 60, "###")

frmDetalle.Text7 = Val(frmDetalle.Text7) + DatePart("s", frmDetalle.gCiclos.TextMatrix(j, 7))

frmDetalle.totales.TextMatrix(1, 6) = Format(Val(frmDetalle.Text7) / 60, "##") & ":" & Format(Val(frmDetalle.Text7) Mod 60, "###")

frmDetalle.Text8 = Val(frmDetalle.Text8) + DatePart("s", frmDetalle.gCiclos.TextMatrix(j, 8))

frmDetalle.totales.TextMatrix(1, 7) = Format(Val(frmDetalle.Text8) / 60, "##") & ":" & Format(Val(frmDetalle.Text8) Mod 60, "###")

frmDetalle.Text9 = Val(frmDetalle.Text9) + DatePart("s", frmDetalle.gCiclos.TextMatrix(j, 9))

frmDetalle.totales.TextMatrix(1, 8) = Format(Val(frmDetalle.Text9) / 60, "##") & ":" & Format(Val(frmDetalle.Text9) Mod 60, "###")


Next j

************************************************** **********
__________________
Ikki
Responder Con Cita
Respuesta


Herramientas
Desplegado

Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Trackbacks are habilitado
Pingbacks are habilitado
Refbacks are habilitado


Temas Similares
Tema Autor Foro Respuestas Último Mensaje
Alguien me puede ayudar con este problema ikki_26 PHP 1 08-02-2007 13:55:54
ALGUIEN PUEDE EXPLICARME ESTE ERROR? ikki_26 Visual Basic 6.00 6 05-10-2005 19:57:47
TEngo problemas con este codigo alguien me puede ayudar? ikki_26 Visual Basic 6.00 12 20-09-2005 23:22:55
Alguien puede ayudarme con este problema de ficheros ikki_26 Visual Basic 6.00 3 11-09-2005 09:45:45
SOS Alguien puede ayudarme con un programita para controlar ikki_26 Visual Basic 6.00 3 30-06-2005 10:35:24


La franja horaria es GMT. Ahora son las 22:23:49.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
A vBSkinworks Design

Alojado en el servicio Premium de Masquewebs | Diseño mejorado por MasqueWebs

right