Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21323

Need help : (Listiview 1 to Listview 2)

$
0
0
I need help about copying the record from listview 1 to listview 2 without duplicating of records.

This is my basic codes : It allows to create duplicate


Code:


        Dim x As Integer
        Dim lvwItem As MSComctlLib.ListItem
       
        For x = lv1.ListItems.Count To 1 Step -1


            If lv1.ListItems(x).Selected = True Then
           
 
                    Set lvwItem = lv2.ListItems.Add(, , lv1.ListItems(x).Text)
                          lvwItem.SubItems(1) = lv1.ListItems(x).SubItems(1)

 
            End If

any help?

Viewing all articles
Browse latest Browse all 21323


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>