|
-
Oct 31st, 2001, 01:30 PM
#1
Thread Starter
Fanatic Member
what's wrong with this?
Code:
ListView3.ListItems.Add "Playlist Filecount: " & ListView2.ListItems.Count & "Total Length: "
-
Oct 31st, 2001, 01:34 PM
#2
PowerPoster
The Add method has a lot of arguments for a start
-
Oct 31st, 2001, 01:38 PM
#3
PowerPoster
What are you trying to acheive?
Is filecount and total length different columns?
-
Oct 31st, 2001, 01:44 PM
#4
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)
-
Oct 31st, 2001, 01:46 PM
#5
Thread Starter
Fanatic Member
ok, like this.....
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.
-
Oct 31st, 2001, 01:46 PM
#6
PowerPoster
Originally posted by Hack
Your adding syntax is incorrect. You need to dimension as variable as ListItem, and then so a Set
VB Code:
ListView1.ListItems.Add(, , FieldName.Value)
will do, no need for other variables, but he's missing a load of arguments...
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
|