Thema: Delphi SaveDialog Dateinamen

Einzelnen Beitrag anzeigen

Benutzerbild von Jens Hartmann
Jens Hartmann

Registriert seit: 11. Jan 2009
Ort: Wilnsdorf
1.439 Beiträge
 
Delphi XE2 Professional
 
#12

Re: SaveDialog Dateinamen

  Alt 17. Jun 2009, 15:25
Schau dir mal die Funktionen

StringReplaced und Trim String an. Die sollten dir weiterhelfen.

Delphi-Quellcode:
    //Den Dateipfad säubern (Achtung: Doppelpunkt und Backslash sind hier sehr wohl gültig!)
    sFilePath := StringReplace(sFilePath, '/', '', [rfReplaceAll, rfIgnoreCase]);
    sFilePath := StringReplace(sFilePath, '*', '', [rfReplaceAll, rfIgnoreCase]);
    sFilePath := StringReplace(sFilePath, '?', '', [rfReplaceAll, rfIgnoreCase]);
    sFilePath := StringReplace(sFilePath, '"', '', [rfReplaceAll, rfIgnoreCase]);
    sFilePath := StringReplace(sFilePath, '<', '', [rfReplaceAll, rfIgnoreCase]);
    sFilePath := StringReplace(sFilePath, '>', '', [rfReplaceAll, rfIgnoreCase]);
    sFilePath := StringReplace(sFilePath, '|', '', [rfReplaceAll, rfIgnoreCase]);
So ähnlich wird das gemacht. Ich weiß nur nicht mit dem Viereck?

Gruß Jens
Jens Hartmann
Das Leben selber ist zu kurz, also nutze jeden Tag wie er kommt.
  Mit Zitat antworten Zitat