Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- uses
- System.StrUtils.ContainsText;
- procedure TForm1.Edit1Change(Sender: TObject);
- var
- I: Integer;
- begin
- ListBox1.Items.BeginUpdate;
- try
- for I := 0 to ListBox1.Items.Count - 1 do
- ListBox1.Selected[I] := ContainsText(ListBox1.Items[I], Edit1.Text);
- finally
- ListBox1.Items.EndUpdate;
- end;
- end;
Advertisement
Add Comment
Please, Sign In to add comment