Hola soy colro
necesito sumar el total contado y el total tarjeta de credito
consigo sumar el total del list1
pongo el codigo
Gracias
necesito sumar el total contado y el total tarjeta de credito
consigo sumar el total del list1
pongo el codigo
Código (vb) [Seleccionar]
Case 1 ' Leer fichero de facturación
FrmFile.Show 1
Dim h As Integer
Dim totalcontado As Integer
Dim totaltcredito As Integer
totalcontado = 0: totaltcredito = 0
If (Len(FrmFile.File) > 0) Then
If (LeerFacturacion(App.Path & "\" & FrmFile.File) = True) Then
Call Activar(True)
For h = 0 To List1.ListCount - 1
If reg2.MetodoDePago = "0" Then
totalcontado = totalcontado + Val(Split(List1.List(h), vbTab)(6))
End If
If reg2.MetodoDePago = "1" Then
totaltcredito = totaltcredito + Val(Split(List1.List(h), vbTab)(6))
End If
Next h
txttotal.Text = Format(totalcontado, "#,##0.00")
Txttotal1.Text = Format(totaltcredito, "#,##0.00")
Else
Call Activar(False)
End If
End If
Gracias