YA PUDE SUMARLOS PERO FALTAN LOS DECIMALES
Publicado por Sandra URGE RESPUESTA (38 intervenciones) el 01/05/2001 02:36:57
hola, he conseguido sumar los campos de un listbox, pero solo consigo total entero y nesesito que sume con todo y decimales
Private Sub Command2_Click()
Dim IndiceLis
Dim VTotal
VTotal = 0
If List3.ListCount < 1 Then Exit Sub
For IndiceLis = 0 To List3.ListCount - 1
VTotal = VTotal + Val(List3.List(IndiceLis))
Next IndiceLis
MsgBox VTotal
End Sub
me pueden ayudar ?
Private Sub Command2_Click()
Dim IndiceLis
Dim VTotal
VTotal = 0
If List3.ListCount < 1 Then Exit Sub
For IndiceLis = 0 To List3.ListCount - 1
VTotal = VTotal + Val(List3.List(IndiceLis))
Next IndiceLis
MsgBox VTotal
End Sub
me pueden ayudar ?
Valora esta pregunta


0