|
-
Oct 14th, 2001, 11:38 AM
#1
Thread Starter
Frenzied Member
Listview probs
Im really struggling with these listviews. Can anyone tell me why the compiler objects to me using the & to concatenate string together on the SET command?
eg.
Dim ItemX as ListItem
Set ItemX = "(" & Tracks.ListItems.Add(, , HFileList.ListItems(FileListRowno).SubItems(2)) & ")"
if I remove the quoted brackets and the ampersands just leaving the listview reference it works fine. But how do I add an item that lets say...Ive prefixed with an "A"? It doesnt seem possible.
Does the SET command not allow the same functionality as strings where you can do S= A & B
regards
There are 3 types of people in this world.........those that can count, and those that can't.
Blobby
-
Oct 14th, 2001, 11:42 AM
#2
PowerPoster
If i understand you correctly, then you're going about it the wrong way. Are you meaning you want this?
VB Code:
Dim ItemX As ListItem
Set ItemX = Tracks.ListItems.Add(, , "A" & HFileList.ListItems(FileListRowno).SubItems(2))
-
Oct 14th, 2001, 12:05 PM
#3
Thread Starter
Frenzied Member
BUGGER!
Chris,
Thanks for spotting the dumbest mistake i ever made!!? probably! 
I can be a complete tit sometimes.
Thanks a lot m8
There are 3 types of people in this world.........those that can count, and those that can't.
Blobby
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
|