Autor Beitrag
tom1266
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 38



BeitragVerfasst: Mi 05.02.03 09:00 
Hallo Leutz,

Also ich habe die listbox mit findfirst.. mit Daten gefüllte, den makierten Eintrag löschen ist klar, nur wie bekomme ich die Datei weg,
zB. in der Listbox steht text.txt der Eintrag soll weg aber auch die Datei!


Gruß Tom
smiegel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 992
Erhaltene Danke: 1

WIN 7
D7 Prof., C#, RAD XE Prof.
BeitragVerfasst: Mi 05.02.03 09:14 
Hallo,

mit DeleteFile aus der Unit SysUtils. Dieser Funktion kannst Du einen Dateinamen angeben, der gelöscht werden soll. In Deinem Fall also der ausgewählte Listbox-Eintrag.

_________________
Gruß Smiegel
Ich weiß, daß ich nichts weiß, aber ich weiß mehr als die, die nicht wissen, daß sie nichts wissen. (Sokrates)
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mi 05.02.03 09:16 
Kuck dir mal die Methode Delete von TCustomListbox an.