我需要可以模糊搜索的,比如搜 ab 可以搜到 bab 或 abc
还有怎么对Subitems进行搜索我目前的代码:With Main.Mp3List do
begin
Selected := FindCaption(0,ed_search.text,false,true,true);
If Selected <> nil then
Begin
setFocus;
Selected.MakeVisible(false);
end;
end;Mp3List is a ListView! 3Qs这方面死书好像很懂阿,希望快点回答,我可用分很多拉^_^
还有怎么对Subitems进行搜索我目前的代码:With Main.Mp3List do
begin
Selected := FindCaption(0,ed_search.text,false,true,true);
If Selected <> nil then
Begin
setFocus;
Selected.MakeVisible(false);
end;
end;Mp3List is a ListView! 3Qs这方面死书好像很懂阿,希望快点回答,我可用分很多拉^_^
if p>0 then found s in s1 else no;
不如自己写
for i;=0 to listview1.items.count do
begin
P:=pos('ab',listview1.items[i].caption);
if p>0 then found s in s1 else no;
end;
但是那样多傻阿,有没有更好的办法?
我的list里面数据太多了.