Cara menghapus data di listview menggunakan checkbox

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Cara menghapus data di listview menggunakan checkbox

Irham
mau nanya gan, caranya menghapus data di listview menggunakan checkbox bagaimana...??

terima kasih
Reply | Threaded
Open this post in threaded view
|

Re: Cara menghapus data di listview menggunakan checkbox

djiesoft
Private Sub CommandDelete_Click()
DoRemove:
For i = 1 To ListView1.ListItems.Count
    If ListView1.ListItems(i).Checked = True Then
        ListView1.ListItems.Remove i
        GoTo DoRemove
    End If
Next
End Sub