Quote
Private Sub List1_DblClick()
List2.AddItem (List1.Text)
End Sub
List2.AddItem (List1.Text)
End Sub
But when i try to add this code to make the item disappear from List1 when it's double clicked:
Quote
List1.RemoveItem (List1.Text)
After adding the above code it would look like this altogether:
Quote
Private Sub List1_DblClick()
List1.RemoveItem (List1.Text)
List2.AddItem (List1.Text)
End Sub
List1.RemoveItem (List1.Text)
List2.AddItem (List1.Text)
End Sub
When i press play it gives me an error! This is what it is:
Quote
Runtime Error: 13
Type mismatch.
Type mismatch.
Then i press DEBUG and it highlights this code in yellow:
Quote
List1.RemoveItem (List1.Text)
I don't even know what's wrong with this!
Anyone have any ideas?
I'm using VB 6.0.
Thanks.


Sign In
Create Account


Back to top









