Set borc = ListView1.Listitems(1).ListSubItems(5)
Set tahs = ListView1.Listitems(1).ListSubItems(6)
bakiye = 0
bakiye = borc - tahs + bakiye
ListView1.Listitems(1).SubItems(7) = bakiye
For i = 2 To ListView1.Listitems.Count
Set borc = ListView1.Listitems(i).ListSubItems(5)
Set tahs = ListView1.Listitems(i).ListSubItems(6)
bakiye = borc - tahs + ListView1.Listitems(i - 1).ListSubItems(7)
ListView1.Listitems(i).SubItems(7) = Format(bakiye, "#,##0.00")
Next i
Set borc = Nothing
Set tahs = Nothing
For i = 1 To ListView1.Listitems.Count
atb = atb + CDbl(ListView1.Listitems(i).ListSubItems(5))
ata = ata + CDbl(ListView1.Listitems(i).ListSubItems(6))
bakiy = (atb - ata)
Next i
TextBox3.Value = atb
TextBox4.Value = ata
TextBox5.Value = bakiy
Sorunum Şu boş subitem ları "0" sıfır olarak görmüyor böylece hesaplamayı yanlış yapıyor. Listview de göstermesin sıfır diye ama Boş olan subitem ları "0" olarak algılasın istiyorum yardımcı olan üstadlara şimdiden teşekkür ederim.
Set tahs = ListView1.Listitems(1).ListSubItems(6)
bakiye = 0
bakiye = borc - tahs + bakiye
ListView1.Listitems(1).SubItems(7) = bakiye
For i = 2 To ListView1.Listitems.Count
Set borc = ListView1.Listitems(i).ListSubItems(5)
Set tahs = ListView1.Listitems(i).ListSubItems(6)
bakiye = borc - tahs + ListView1.Listitems(i - 1).ListSubItems(7)
ListView1.Listitems(i).SubItems(7) = Format(bakiye, "#,##0.00")
Next i
Set borc = Nothing
Set tahs = Nothing
For i = 1 To ListView1.Listitems.Count
atb = atb + CDbl(ListView1.Listitems(i).ListSubItems(5))
ata = ata + CDbl(ListView1.Listitems(i).ListSubItems(6))
bakiy = (atb - ata)
Next i
TextBox3.Value = atb
TextBox4.Value = ata
TextBox5.Value = bakiy
Sorunum Şu boş subitem ları "0" sıfır olarak görmüyor böylece hesaplamayı yanlış yapıyor. Listview de göstermesin sıfır diye ama Boş olan subitem ları "0" olarak algılasın istiyorum yardımcı olan üstadlara şimdiden teşekkür ederim.
