Re: ListBox

Posted by aceJuice on November 02, 2004

In Reply to: ListBox posted by anonim on October 23, 2004

You have to create a TStringlist, then set the options.

Var SL:StringList;
begin
SL:=TStringList.Create;
SL.Duplicates:=DupIgnore;
///Make Sure you set it like so>>>>
SL.Sorted:=True;
///Or else it will still take duplicates.

///So just take your current listbox contents copy them to the sl and back, and you will never have a duplicate@!


[ DelphiLand FAQ ]