|
-
Mar 3rd, 2012, 11:52 AM
#11
Thread Starter
Fanatic Member
Re: ListView problem: no refreshing after item deletion
 Originally Posted by szlamany
Then don't break - but do this instead...
Put a DEBUG.PRINT statement below the line indicated...
Code:
If Trim(ListView1.ListItems(indx).SubItems(2)) = Trim(lblKliknutoNa.Caption) Then
Debug.Print indx
Debug.Print ListView1.ListItems.Count
ListView1.ListItems.Remove (indx)
Debug.Print ListView1.ListItems.Count
indx = indx - 1
lvredova = lvredova - 1
End If
what number appears in the immediate window.
in the case of 3 LV items it shows:
Debug.Print indx=3
Debug.Print ListView1.ListItems.Count=3
Debug.Print ListView1.ListItems.Count=2
That means, everything is fine
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|