Autor Beitrag
wwerner
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 185



BeitragVerfasst: Do 25.07.02 10:06 
Jetzt ist es zeit für den Debugger
Das ausführen und schrittweise durchgehen
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
if ComboBox1.ItemIndex <> -1 then 
  begin 
    Filename := ComboBox1.Items[ComboBox1.ItemIndex]; 
    Path := ExtractFilePath(application.ExeName)+'Datenbanken\'; 
    if DeleteFile (Path + Filename)
      then Showmessage('gelöscht')
      else Showmessage('Fehler'); 
  end;

_________________
Gruß

Wolfgang

----------
zu hause ist es doch am schönsten
Jagg Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 635



BeitragVerfasst: Do 25.07.02 10:10 
Hey tino bei deletefile muss das hin !
ausblenden Quelltext
1:
DeleteFile (Path + Filename + '.dbf');					


trotzdem danke !
Jagg Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 635



BeitragVerfasst: Do 25.07.02 10:12 
wie mache ich jetzt das er den namen aus der combobox löscht !

Mit combobox.clear geht das nicht,dann löcht er ja alle,aber ich will ja nur den gelöschten namen weghaben aus der comboBox !

Jagg !
wwerner
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 185



BeitragVerfasst: Do 25.07.02 10:21 
Wie fügst du ein? Wahrscheinlich mit Combobox1.items.add....
Was hälst du zum löschen von Combobox1.items.delete?

_________________
Gruß

Wolfgang

----------
zu hause ist es doch am schönsten
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Do 25.07.02 10:31 
Jagg hat folgendes geschrieben:
Hey tino bei deletefile muss das hin !
Da siehste wie viel Du doch selbst mit dem Debugger herausfinden kannst :-D

Gruß
Jagg Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 635



BeitragVerfasst: Do 25.07.02 10:46 
ok,ich habe es jetzt alles
danke für eure hilfe und für eure feduld mit mir !

jagg !