在OnEnter里加入:
var
str:string;
i:integer;
for i:=0 to combobox1.items.count-1 do
begin
str:=ComboBox1.items[i];
if Pos(ComboBox1.text,str)>0 then
begin
ComboBox1.ItemIndex:=i;
Exit;
end;
end;
var
str:string;
i:integer;
for i:=0 to combobox1.items.count-1 do
begin
str:=ComboBox1.items[i];
if Pos(ComboBox1.text,str)>0 then
begin
ComboBox1.ItemIndex:=i;
Exit;
end;
end;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货