Ver Mensaje Individual
  #6 (permalink)  
Antiguo 27/01/2007, 19:47
agustinbus
 
Fecha de Ingreso: enero-2007
Mensajes: 5
Antigüedad: 17 años, 3 meses
Puntos: 0
Re: Calcular campos de un Listview a un textbox

ya intente pero me da el error type mismacth algo asi, antes por lo menos sumaba ahora me tira error asi es como lo hice:

Private Function sumarGastos() As Variant
Dim i As Variant
For i = 1 To ListView1.ListItems.Count
sumarGastos = Round(sumarGastos + CDbl(ListView1.ListItems(i).SubItems(10)), 2)
Next i
End Function