Cout=ListView1. ListItems. Count
For I=1 To cout
If listview1. Listitems (I). Listsubitems (8). The text=0 Then
ListView1. ListItems. Remove the I
End the If
Cout=ListView1. ListItems. Count
Next
CodePudding user response:
Look at the following line not lineCout=ListView1. ListItems. Count
For I=0 To cout - 1
If listview1. Listitems (I). Listsubitems (8). The text=0 Then
ListView1. ListItems. Remove the I
End the If
Cout=ListView1. ListItems. Count
Next