|
-
November 11th, 1999, 08:03 AM
#1
removing items from listview
How to remove checked items from listview when listview checkboxes are on.
-
November 12th, 1999, 08:23 AM
#2
Re: removing items from listview
hi,
i assume that you want to delete all selected items, just like in hotmail... Here is a piece of code that works fine for me. If you find any problem please do get back to me.
private Sub cmdDeleteAllSelectedItems_Click()
Dim noMoreCheckedItems as Boolean
Dim item as ListItem
Do
noMoreCheckedItems = true
for Each item In myList.ListItems
If item.Checked then
myList.ListItems.Remove item.Index
noMoreCheckedItems = false
Exit for
End If
next
Loop Until noMoreCheckedItems
End Sub
Regards,
fundooMani
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
|