Thema: Delphi ListBox.ItemIndex !

Einzelnen Beitrag anzeigen

Delphiturbo
(Gast)

n/a Beiträge
 
#3

Re: ListBox.ItemIndex !

  Alt 27. Apr 2008, 11:33
Danke! Stimmt
Delphi-Quellcode:
procedure TForm1.Button1Click(Sender: TObject);
var
  search : array[0..128] of Char;
  indexactuell : integer;
begin
indexactuell := Listbox1.Itemindex;

  //make sure Length(Edit1.Text) <= 128
  StrPCopy(search, Edit1.Text) ;
  ListBox1.ItemIndex := ListBox1.Perform(LB_SELECTSTRING, indexactuell, LongInt(@search)) ;
  indexactuell := indexactuell + 1;
end;
  Mit Zitat antworten Zitat