Autor Beitrag
furkal
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 33



BeitragVerfasst: Fr 21.03.03 16:18 
Mohoin!

hab ein kleines Problem beim SPEICHERN einer datei!

wie schaffe ich es, das ich beim schreiben der Datei (speichern) automatisch ins PRGRAMMVERZEICHNIS (sollte variabel sein!!) schreibe? (ohne SaveDialog, wenn's geht)

(es kommt bei mir immer ein opendialog in die quere, dessen letztes verzeichnis gewählt wird.)

Moderiert von user profile iconKlabautermann: Titel geandert.
Klabautermann
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Veteran
Beiträge: 6366
Erhaltene Danke: 60

Windows 7, Ubuntu
Delphi 7 Prof.
BeitragVerfasst: Fr 21.03.03 16:23 
Hallo,

bitte beschänke deine Titel auf die reine Nutziformation. Also keine Sternchen oder ähnliche Zeichen zu designzwecken in diese aufnehmen.

Ich habe dein
Zitat:
***##***Datei Speichern***##***

in
Zitat:
Datei Speichern
geändert.

Die lösung für dein Problem findest du übrigens in diesem FAQ.

Gruß
Klabautermann
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Fr 21.03.03 20:24 
kleine anmerkung zu dem vom MOD: Nimm doch das nächste mal die suchfunktion her,ok ?

also: das FAQ zeigt dir, wie du den Pfad zu deiner EXE bekommst.
wie du dann die daten speichern willst musst du entscheiden.
wenn es der inhalt eines memos ist dann nimm: memo1.lines.savetofile ( pfad der datei als string );

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Raphael O.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1596


VS 2013
BeitragVerfasst: Fr 21.03.03 22:00 
du kannst das Programmverzeichnis so herauskriegen:
ausblenden Quelltext
1:
memo1.lines.savetofile(extractfilepath(paramst(0))+filename);					
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Sa 22.03.03 12:14 
das stand aber auch in der FAQ drin !

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Raphael O.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1596


VS 2013
BeitragVerfasst: Sa 22.03.03 13:52 
ich finde, wenn man schon die Antwort weiß, und die wirklich kurz ist, dann ist es Quatsch auf die Faq's zu verweisen...
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Sa 22.03.03 14:27 
hmmmm....stimmt auch wieder.

allerdings hab ich ja auch code gepostet, der zeigt wie du ein memo speicherst.

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: So 23.03.03 11:37 
Fiji-Fighter hat folgendes geschrieben:
dann ist es Quatsch auf die Faq's zu verweisen...

Da der Ueser neu hier im Forum ist könnte es sein das diese nicht die FAQ kennt und dann macht es schon sinn den User auf die FAQ zu verweisen. Außerdem wird er dann hoffentlich in Zukunft vorher in die FAQ schauen.

Gruß
Tino
patrick
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1481

WIN2k, WIN XP
D6 Personal, D2005 PE
BeitragVerfasst: Mo 24.03.03 18:20 
hey ich mein auch, das war sein erster beitrag. :D

_________________
Patrick
im zweifelsfall immer das richtige tun!!!
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Mo 24.03.03 20:14 
ok ihr habt recht

_________________
In the beginning was the word.
And the word was content-type: text/plain.