Results 1 to 3 of 3

Thread: Listview probs

  1. #1

    Thread Starter
    Frenzied Member Blobby's Avatar
    Join Date
    Oct 2001
    Location
    England
    Posts
    1,512

    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

  2. #2
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    If i understand you correctly, then you're going about it the wrong way. Are you meaning you want this?
    VB Code:
    1. Dim ItemX As ListItem
    2.  
    3. Set ItemX = Tracks.ListItems.Add(, , "A" & HFileList.ListItems(FileListRowno).SubItems(2))

  3. #3

    Thread Starter
    Frenzied Member Blobby's Avatar
    Join Date
    Oct 2001
    Location
    England
    Posts
    1,512

    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
  •  



Click Here to Expand Forum to Full Width