Thema: Delphi ListBox-Eintrag ändern

Einzelnen Beitrag anzeigen

Benutzerbild von whiteshark
whiteshark

Registriert seit: 4. Dez 2003
Ort: Cottbus
222 Beiträge
 
Delphi 2005 Personal
 
#3

Re: ListBox-Eintrag ändern

  Alt 15. Mär 2005, 19:04
Delphi-Quellcode:
FOR i := 0 TO ListBox1.Items.Count -1 DO
if (strtoint(edit1.text)=strtoint(ListBox1.Items[i])) then ListBox1.Items[i] := '0';
Setzte mal das '-Zeichen vor und nach der 0(Null).
Du muss den Wert aus der Listbox noch in eine Integerzahl umwandeln.

Bei mir hat es funktioniert!
Men are born ignorant, not stupid; they are made stupid by education. - Bertrand Russell

I cannot teach anybody anything, i can only make them think. - Socrates
  Mit Zitat antworten Zitat