Autor Beitrag
Barret
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 156
Erhaltene Danke: 1

Win XP
D7 Ent
BeitragVerfasst: Do 27.05.04 12:52 
kann mir jemand sagen, wie man den letzten String-Wert aus ein ListBox löschen kann???
muss man dort die genau Zahl der Reihe angeben um diesen zu löschen?

_________________
Wir könnten ja, wenn wir wollten aber wir wollen ja nicht.
It´s not a bug, it´s a feature.
FaTaLGuiLLoTiNe
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 200
Erhaltene Danke: 5

Windows 7, Windows 8.1
Delphi XE
BeitragVerfasst: Do 27.05.04 13:08 
ausblenden Delphi-Quelltext
1:
 ListBox1.Items.Delete(ListBox1.ItemIndex - 1);					

_________________
<< FaTaLGuiLLoTiNe >>
Rhinoceroses don't play games!
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: Do 27.05.04 13:19 
ItemIndex gibt aber den Index des aktuell markierten Eintrags zurück..
ausblenden Delphi-Quelltext
1:
ListBox1.Items.Delete(ListBox1.Items.Count - 1);					

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!
Barret Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 156
Erhaltene Danke: 1

Win XP
D7 Ent
BeitragVerfasst: Do 27.05.04 13:19 
thx FaTaLGuiLLoTiNe für die Antwort aber.....
das ganze funtzt bei mir net!
kann das dadurch kommen das ich die Items per Array eintragen lasse?
aber den gesamt Array-Wert kann ich dort auch nicht minus eins rechnen lassen!

_________________
Wir könnten ja, wenn wir wollten aber wir wollen ja nicht.
It´s not a bug, it´s a feature.
FaTaLGuiLLoTiNe
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 200
Erhaltene Danke: 5

Windows 7, Windows 8.1
Delphi XE
BeitragVerfasst: Do 27.05.04 13:21 
[shame]
Nee, hab' mich vertan.
[/shame]

Aber der gute Motzi hat's ja schon korrigiert, danke!

P.S.: Jaja, ausgerechnet die Sachen die man selber mit am häufigsten verwendet, macht man in der Eile gerne doch mal falsch.

_________________
<< FaTaLGuiLLoTiNe >>
Rhinoceroses don't play games!
Barret Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 156
Erhaltene Danke: 1

Win XP
D7 Ent
BeitragVerfasst: Do 27.05.04 13:22 
jetzt gehts :lol:
danke leuts

_________________
Wir könnten ja, wenn wir wollten aber wir wollen ja nicht.
It´s not a bug, it´s a feature.