Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 707
  • Last Modified:

Filtering a clistctrl

Is there any built in capacity for filtering items in a clistctrl?  I don't want to start from scratch if I don't have to..
0
appleby
Asked:
appleby
  • 2
  • 2
1 Solution
 
Answers2000Commented:
Ans. No

There is a FindItem, but that's next to useless

If you are getting the items from a DB, some Data-aware activeX controls have this facility
0
 
applebyAuthor Commented:
Ok, thank you.  Do you want to officially post as an answer for the points?
0
 
The_BrainCommented:
how do you want to filter it?
I could write a little filter for you if you want one.
0
 
applebyAuthor Commented:
I just want to be able to use * and ? as wildcards and treat any other characters as literal whatever they are.  Any item in the list whose text matches the filter stays. So what I need is the part that compares a string to a filter string and says yes or no.
(ex: if filter is sp*.??? then string spoil.exe would match but spoil.cc wouldn't)

If you want, go for it but I'm not really willing to up the points because I can do this myself no problem - just wasn't going to waste the code if there were a way to do the comparison easier.
0
 
Answers2000Commented:
>> Ok, thank you.  Do you want to officially post as an answer for the points?
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now