TLama

Untitled

Apr 19th, 2014
592
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.32 KB | None | 0 0
  1. uses
  2.   System.StrUtils.ContainsText;
  3.  
  4. procedure TForm1.Edit1Change(Sender: TObject);
  5. var
  6.   I: Integer;
  7. begin
  8.   ListBox1.Items.BeginUpdate;
  9.   try
  10.     for I := 0 to ListBox1.Items.Count - 1 do
  11.       ListBox1.Selected[I] := ContainsText(ListBox1.Items[I], Edit1.Text);
  12.   finally
  13.     ListBox1.Items.EndUpdate;
  14.   end;
  15. end;
Advertisement
Add Comment
Please, Sign In to add comment