|
-
February 22nd, 1999, 11:14 AM
#1
Move ListItem from 1 ListView to another
Hi,
I'm using 2 buttons to control the movement of ListItems from 1 ListView to
another. I would like to know how it is done.
Private Sub cmdAdd_Click()
Dim itmListItem As ListItem
Dim temp1, temp2 As String
With ListView2
Set itmListItem = ListView1.SelectedItem.ListSubItems(0)
itmListItem = ListView1.SelectedItem.ListSubItems(1)
temp1 = itmListItem.SubItems(0)
temp2 = itmListItem.SubItems(1)
End With
MsgBox "temp1 = " & temp1 & " temp2 = " & temp2
End Sub
The error message is 'Index out of bounds'. What's wrong with the above code??
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
|