Hi
Is there a way that i can a loop in my program
Dim Total1,Total2,Total3,total4,Total5,Total6,Total7 ,Total8,Total9,Total10 as integer
For I = 0 to 100
Total1= InterestRate(i, Listview1.Items(0).SubItems(1).text,Listview1.items(0).subitems(2))
Total2= InterestRate(i,Listview1.items(1).subitems(1).text,Listview1.items(1).subitems(2))
Dim Item1 as new ListviewItem(i)
Item1.Subitems.add(FormatCurrency(Total1+Total2,2)
ListView2.Items.addrange(new listviewitem() {Item1})
Next
This works because i have know how many rows have data for the calculation in listview1. I would like to somehow code it so it checks the listview1 count and then make the calculation based on how many rows.
ie 3 rows of date have been entered by the user then item1.subitems.add(formatcurrency(total1+total2+total3,2)
Many Thanks.