Results 1 to 3 of 3

Thread: Search listviews subitem partial match

  1. #1

    Thread Starter
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926
    Does anybody have a workaround for this:
    Searching a listview by subitem, with partial match does not work like it is supposed to. It always returns Nothing unless the match is full.

    Set itmX = lvwPart.FindItem(txtCustPart.Text, lvwSubItem, , lvwPartial)

  2. #2
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    Your code is working as it should!
    lvwPartial only applies to the Text property NOT sub items

    as for a work around...
    code your own finditem type of function.
    Mark
    -------------------

  3. #3

    Thread Starter
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926
    Yep, Thats what I did.
    I needed to exclude the hyphens from the comparison, since the listview doesn't use them to sort on.

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