
11.03.2011, 13:16
|
Местный
|
|
Регистрация: 29.10.2009
Сообщения: 446
Репутация: 271
|
|
Код:
procedure TForm1.Search;
var
n: integer;
substr: String;
s: String;
begin
for n:=0 to ListBox1.Count-1 do
begin
substr:=Edit1.Text;
s:=ListBox1.Items[n];
if Pos(substr,s)=1 then LoadCharacter(n);
end;
end;
|