Autor Beitrag
delphiuserno1
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 82


Delphi 7 enterprise, Delphi 2007
BeitragVerfasst: Sa 10.06.06 19:15 
Hi

Weiß jemand wie man die markierte Zeile eines Valuelisteditors löschen kann? Wie man eine bestimmte zeile löscht weiß ich wohl nur woher weiß ich welche markiert ist?
Hab nirgends was hilfreiches gefunden

THX

Greetz
Jakob Schöttl
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 929
Erhaltene Danke: 1


Delphi 7 Professional
BeitragVerfasst: Sa 10.06.06 19:19 
Gibts da nicht in TValueList eine Eigenschaft vom "TStrings". Bei TStrings gibts eine Methode, glaub die heißt Delete oder Erase und als parameter den Index der Zeile. Schau in der Hilfe, damit müsste es gehen!

Achja, und den index der markierten zeile bekommst du vllt durch selectedItem oder Selected oder SelectedIndex oder so!?

Ich kann grad micht selber nachschauen, weil ich grad beim alten computer mit delphi4 arbeite...
delphiuserno1 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 82


Delphi 7 enterprise, Delphi 2007
BeitragVerfasst: So 11.06.06 11:59 
Hört isch ganz gut an! werd nachher mal nachschauen
delphiuserno1 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 82


Delphi 7 enterprise, Delphi 2007
BeitragVerfasst: So 11.06.06 16:50 
Mit selected gabs da nix allerding hab ich was anderes gefunden:

ausblenden Delphi-Quelltext
1:
valuelisteditor1.DeleteRow(valuelisteditor1.row);					


das löscht die markierte zeile

Greetz