Autor Beitrag
qwertzuiopü
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 63



BeitragVerfasst: Sa 01.04.06 18:10 
HAllo zusammen,

wie kann ich in dem volgenem code etweder einen namen schon vorher in das feld für den Datei namen eintragen oder wie kann ich den namen von dem Fenster ändern?


Ich hoffe ihr könnt mir helfen.
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
  if SaveDialog1.Execute then
  begin
    if FileExists(SaveDialog1.FileName) then
      if MessageDlg(Format(SOverwrite, [SaveDialog1.FileName]),
        mtConfirmation, mbYesNoCancel, 0) <> idYes then Exit;
    Memo3.Lines.SaveToFile(SaveDialog1.FileName);
    FFileName := SaveDialog1.FileName;
    Memo3.Modified := False;
  end;
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Sa 01.04.06 20:51 
user profile iconqwertzuiopü hat folgendes geschrieben:
das feld für den Datei namen eintragen

Welches Feld für den Dateinamen? :gruebel:
Meinst du das Feld im SaveDialog?
Du kannst dafür die Eigenschaft filename benutzen:
ausblenden Delphi-Quelltext
1:
savedialog1.filename:='C:/Programme/Borland/Delphi 7/bin/delphi32.exe';					

user profile iconqwertzuiopü hat folgendes geschrieben:
oder wie kann ich den namen von dem Fenster ändern?

Benutze die Eigenschaft title.

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot