Code:ListView3.ListItems.Add "Playlist Filecount: " & ListView2.ListItems.Count & "Total Length: "
Printable View
Code:ListView3.ListItems.Add "Playlist Filecount: " & ListView2.ListItems.Count & "Total Length: "
The Add method has a lot of arguments for a start
What are you trying to acheive?
Is filecount and total length different columns?
Your adding syntax is incorrect. You need to dimension as variable as ListItem, and then so a Set,:VB Code:
Dim MyItem As ListItem Set MyItem = ListView1.ListItems.Add(, , FieldName.Value)
Heres what I want to do:
I want to add a listitem to the list that reads like this:
Playlist Filecount: (here I want it to put the count of the files in listview2) .
I was hoping I could do it this way to avoid using multiple columns. If this won't work, I guess I have to use multiple columns.
P.S. Is there an EASIER way to set column width than just by trial and error. It seems I have to reset it and run the program evertime to see if something is going to fit.
Quote:
Originally posted by Hack
Your adding syntax is incorrect. You need to dimension as variable as ListItem, and then so a Set
will do, no need for other variables, but he's missing a load of arguments...VB Code:
ListView1.ListItems.Add(, , FieldName.Value)